[limb-svn] r5805 - 2.x/trunk/shared/js/Limb
svn at limb-project.com
svn at limb-project.com
Fri May 4 18:05:40 MSD 2007
Author: momental
Date: 2007-05-04 18:05:40 +0400 (Fri, 04 May 2007)
New Revision: 5805
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5805
Modified:
2.x/trunk/shared/js/Limb/window.js
Log:
-- js was improvement of openHandler
Modified: 2.x/trunk/shared/js/Limb/window.js
===================================================================
--- 2.x/trunk/shared/js/Limb/window.js 2007-05-04 11:38:49 UTC (rev 5804)
+++ 2.x/trunk/shared/js/Limb/window.js 2007-05-04 14:05:40 UTC (rev 5805)
@@ -132,6 +132,9 @@
onOpen: function()
{
Limb.window.register(this.windowName, this);
+
+ if(this.openHandler && !this.openHandler())
+ return;
if(!this.window.limbWindowWidth)
this.window.limbWindowWidth = this.parentWindow.getRect().getWidth() * 0.85;
@@ -139,9 +142,7 @@
if(!this.window.limbWindowHeight)
this.window.limbWindowHeight = this.parentWindow.getRect().getHeight() * 0.9;
- this.centreWindow(this.window.limbWindowWidth, this.window.limbWindowHeight);
-
- this.openHandler();
+ this.centreWindow(this.window.limbWindowWidth, this.window.limbWindowHeight);
},
onClose: function()
More information about the limb-svn
mailing list