changeset 1843:b978764e1234

Comments: fix mouseover pointer appearance
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Mar 2007 09:27:16 +0100
parents e8bada5aaae0
children 58ebb64243cc 3ddf2193a16e
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Tue Feb 27 22:29:44 2007 +0100
+++ b/MoinMoin/theme/__init__.py	Thu Mar 01 09:27:16 2007 +0100
@@ -1077,8 +1077,10 @@
                  elif self.request.cfg.supplementation_page and not self.request.getPragma('supplementation-page', 1) in ('off', '0'):
                      editbar_actions.append(self.supplementation_page_nameLink(page))
              elif editbar_item == 'Comments':
-                 # we just use <a> to get same style as other links: 
-                 editbar_actions.append('<a id="toggleCommentsButton" onClick="toggleComments();">%s</a>' % _('Comments'))
+                 # we just use <a> to get same style as other links, but we add some dummy
+                 # link target to get correct mouseover pointer appearance. return false
+                 # keeps the browser away from jumping to the link target:: 
+                 editbar_actions.append('<a href="#" id="toggleCommentsButton" onClick="toggleComments();return false;">%s</a>' % _('Comments'))
              elif editbar_item == 'Edit':
                  editbar_actions.append(self.editorLink(page))
              elif editbar_item == 'Info':