changeset 2550:6d10f8331420

Fixes broken toggles for transclusion and comments
author sharky93 <rishabhr123@gmail.com>
date Sun, 09 Feb 2014 07:21:52 +0530
parents 6938dad629da
children c97528d53f1f
files MoinMoin/static/js/common.js
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Mon Feb 03 02:14:42 2014 +0100
+++ b/MoinMoin/static/js/common.js	Sun Feb 09 07:21:52 2014 +0530
@@ -63,7 +63,6 @@
     if (pageComments.length > 0) {
         // There are comments, so show itemview Comments button
         $('.moin-toggle-comments-button').css('display', '');
-        $('.moin-toggle-comments-button').click(toggleComments);
         // comments are visible; per user option, hide comments if there is not a <br id="moin-show-comments" />
         if (!document.getElementById('moin-show-comments')) {
             this.toggleComments();
@@ -132,7 +131,6 @@
     wrappers = $('.moin-item-wrapper');
     if (wrappers.length > 0) {
         $('.moin-transclusions-button').css('display', '');
-        $('.moin-transclusions-button').click(toggleTransclusionOverlays);
     }
     $('.moin-transclusions-button').click(this.toggleTransclusionOverlays);
 };