changeset 2811:c579c19548a7

fix basic theme show/hide comments tooltip
author RogerHaase <haaserd@gmail.com>
date Tue, 07 Oct 2014 10:39:43 -0700
parents 1839da8e279e
children 2f77d0af91e5
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	Tue Oct 07 09:25:05 2014 -0700
+++ b/MoinMoin/static/js/common.js	Tue Oct 07 10:39:43 2014 -0700
@@ -46,7 +46,7 @@
     "use strict";
     // Toggle visibility of every tag with class "comment"
     var pageComments = $('.comment'),   // will hold list of elements with class "comment"
-        buttons = $('.moin-toggle-comments-button > a');
+        buttons = $('.moin-toggle-comments-button > a, button.moin-toggle-comments-button');
     if (pageComments.is(':hidden')) {
         pageComments.show();
         buttons.attr('title', _("Hide comments"));