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

svn at limb-project.com svn at limb-project.com
Sat May 5 17:41:55 MSD 2007


Author: pachanga
Date: 2007-05-05 17:41:55 +0400 (Sat, 05 May 2007)
New Revision: 5816
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5816

Modified:
   3.x/trunk/limb/js/shared/limb/auto_popup.js
Log:
-- self popup hrefs are skipped

Modified: 3.x/trunk/limb/js/shared/limb/auto_popup.js
===================================================================
--- 3.x/trunk/limb/js/shared/limb/auto_popup.js	2007-05-05 13:27:07 UTC (rev 5815)
+++ 3.x/trunk/limb/js/shared/limb/auto_popup.js	2007-05-05 13:41:55 UTC (rev 5816)
@@ -6,6 +6,10 @@
     {
       if(this.href.indexOf('popup=1') > -1)
       {
+        //skip self hrefs with popup(basically it's <a href="#"> alike tags)
+        if(this.href.indexOf('#') > -1 && this.href.indexOf(window.location.href) > -1)
+          return;
+
         jQuery(this).bind("click", function()
                        {
                          new Limb.Window(this.href);



More information about the limb-svn mailing list