changeset 1329:6ad1a77656ca

fix bug where absolute url was compared to relative url
author Roger Haase <crosseyedpenguin@yahoo.com>
date Sun, 15 Apr 2012 12:48:17 -0700
parents 4210e42d694d
children cae27a401354
files MoinMoin/static/js/common.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Sun Apr 15 12:39:26 2012 -0700
+++ b/MoinMoin/static/js/common.js	Sun Apr 15 12:48:17 2012 -0700
@@ -130,7 +130,7 @@
     transclusions.each(function (index) {
         elem = transclusions[index];
         // if this is the transcluded item page, do not wrap (avoid creating useless overlay links to same page)
-        if (location.href !== elem.getAttribute('data-href')) {
+        if (location.pathname !== elem.getAttribute('data-href')) {
             if (elem.tagName === 'DIV') {
                 wrapper = $('<div class="moin-item-wrapper"></div>');
             } else {