[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kupu-checkins
Subject:    [kupu-checkins] r44431 - kupu/trunk/kupu/common
From:       duncan () codespeak ! net
Date:       2007-06-22 12:44:12
Message-ID: 20070622124412.63BE080E9 () code0 ! codespeak ! net
[Download RAW message or body]

Author: duncan
Date: Fri Jun 22 14:44:12 2007
New Revision: 44431

Modified:
   kupu/trunk/kupu/common/kupubasetools.js
   kupu/trunk/kupu/common/kupudrawers.js
Log:
Attributes may be encoded

Modified: kupu/trunk/kupu/common/kupubasetools.js
==============================================================================
--- kupu/trunk/kupu/common/kupubasetools.js	(original)
+++ kupu/trunk/kupu/common/kupubasetools.js	Fri Jun 22 14:44:12 2007
@@ -2881,7 +2881,7 @@
     for (var i = 0; i < anchors.length; i++) {
         var m = (/(.*)(#.*)$/.exec(anchors[i].href));
         /* TODO: filter out external links */
-        if (m) { inuse[m[2]] = 1; };
+        if (m) { inuse[decodeURIComponent(m[2])] = 1; };
     }
     return inuse;
 }

Modified: kupu/trunk/kupu/common/kupudrawers.js
==============================================================================
--- kupu/trunk/kupu/common/kupudrawers.js	(original)
+++ kupu/trunk/kupu/common/kupudrawers.js	Fri Jun 22 14:44:12 2007
@@ -1644,7 +1644,7 @@
                 'type': (mode==0)?"radio":"checkbox",
                 checked: checked, title:'hello',
                 name: "kupu-bm-paralist"});
-            if (anchor && inuse && inuse[anchor]) {
+            if (anchor && inuse && inuse[decodeURIComponent(anchor)]) {
                 control.disabled = true;
             }
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic