Author: bargull
Date: 2008-02-13 07:30:09 -0800 (Wed, 13 Feb 2008)
New Revision: 8012
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs
Log:
Change 20080212-bargull-0 by [EMAIL PROTECTED] on 2008-02-12 22:59:08
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: making a view modal
New Features:
Bugs Fixed: LPP-5426
Technical Reviewer: promanik
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Don't push a view onto the modal-stack more than once.
Tests:
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs 2008-02-13
04:42:34 UTC (rev 8011)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs 2008-02-13
15:30:09 UTC (rev 8012)
@@ -1,6 +1,6 @@
/**
*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @affects lzmodemanager
@@ -69,11 +69,13 @@
* @param LzView view: The view intending to have modal iteraction
*/
LzModeManager.makeModal = function ( view ) {
- this.modeArray.push( view );
- if (this.onmode.ready) this.onmode.sendEvent( view );
- var f = LzFocus.getFocus();
- if ( f && ! f.childOf( view ) ){
- LzFocus.clearFocus();
+ if (this.modeArray.length == 0 || !this.hasMode( view )) {
+ this.modeArray.push( view );
+ if (this.onmode.ready) this.onmode.sendEvent( view );
+ var f = LzFocus.getFocus();
+ if ( f && ! f.childOf( view ) ){
+ LzFocus.clearFocus();
+ }
}
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins