diff -r a053f41de99e MoinMoin/theme/__init__.py
--- a/MoinMoin/theme/__init__.py	Sat Sep 27 18:47:57 2008 +0200
+++ b/MoinMoin/theme/__init__.py	Sat Sep 27 21:39:42 2008 +0200
@@ -1094,10 +1094,17 @@ actionsMenuInit('%(label)s');
 
         html = self._cache.get('editbar')
         if html is None:
-            # Remove empty items and format as list
-            items = ''.join(['<li>%s</li>' % item
-                             for item in self.editbarItems(page) if item])
-            html = u'<ul class="editbar">%s</ul>\n' % items
+            # Remove empty items and format as list. The item for showing inline comments
+            # is hidden by default. It gets activated through javascript only if inline
+            # comments exist on the page.
+            items = []
+            for item in self.editbarItems(page):
+                if item:
+                    if 'nbannotation' in item:
+                        items.append('<li class="toggleCommentsButton" style="display:none;">%s</li>' % item) 
+                    else:
+                        items.append('<li>%s</li>' % item)
+            html = u'<ul class="editbar">%s</ul>\n' % ''.join(items)
             self._cache['editbar'] = html
 
         return html
@@ -1141,10 +1148,11 @@ actionsMenuInit('%(label)s');
                 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, 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="#" class="toggleCommentsButton" style="display:none;" onClick="toggleComments();return false;">%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. Do not name
+                # css class "nbcomment". This will be recognised as an inline comment.
+                editbar_actions.append('<a href="#" class="nbannotation" onClick="toggleComments();return false;">%s</a>' % _('Comments'))
             elif editbar_item == 'Edit':
                 editbar_actions.append(self.editorLink(page))
             elif editbar_item == 'Info':
--- a/wiki/htdocs/common/js/common.js	Sat Sep 27 18:47:57 2008 +0200
+++ b/wiki/htdocs/common/js/common.js	Sat Sep 27 21:48:44 2008 +0200
@@ -203,7 +204,7 @@ function show_toggleComments() {
         for (i = 0; i < all.length; i++){
             el = all[i];
             if ( el.className == 'toggleCommentsButton' ){
-                el.style.display = 'inline';
+                el.style.display = '';
             }
         }
     }
