[limb-svn] r5948 - 3.x/trunk/limb/js/shared/js/limb

svn at limb-project.com svn at limb-project.com
Wed Jun 6 14:25:32 MSD 2007


Author: pachanga
Date: 2007-06-06 14:25:32 +0400 (Wed, 06 Jun 2007)
New Revision: 5948
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5948

Modified:
   3.x/trunk/limb/js/shared/js/limb/auto_popup.js
Log:
-- it's possible to forbid popupping by setting this.popup = false attribute

Modified: 3.x/trunk/limb/js/shared/js/limb/auto_popup.js
===================================================================
--- 3.x/trunk/limb/js/shared/js/limb/auto_popup.js	2007-06-06 09:31:22 UTC (rev 5947)
+++ 3.x/trunk/limb/js/shared/js/limb/auto_popup.js	2007-06-06 10:25:32 UTC (rev 5948)
@@ -18,11 +18,15 @@
         if(this.href.indexOf('#') > -1 && this.href.indexOf(window.location.href) > -1)
           return;
 
-        jQuery(this).bind("click", function()
-                       {
-                         new Limb.Window(this.href);
-                         return false;
-                       });
+        jQuery(this).bind("click",
+         function()
+         {
+           //we can specify explicitly not to popup, this is useful for onclick handlers in <a> tag
+           if(this.popup === false)
+             return false;
+           new Limb.Window(this.href);
+           return false;
+         });
       }
     }
    );



More information about the limb-svn mailing list