diff MoinMoin/themes/__init__.py @ 2457:17a40164f8b4

fixes rendering of class in tabs, adds markup support for double click to edit JS
author sharky93 <rishabhr123@gmail.com>
date Mon, 09 Sep 2013 05:56:26 +0530
parents d4d377f4e56f
children a66fcc5ce02b
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Mon Sep 09 05:29:54 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Mon Sep 09 05:56:26 2013 +0530
@@ -107,9 +107,12 @@
                             href = "#"
                         else:
                             maincls = None
+                            # special case for modify item link, this depends on the double click to edit JS
+                            if endpoint == 'frontend.modify_item':
+                                maincls = "moin-modify-button"
                             href = url_for(endpoint, item_name=item_name)
                             if endpoint == current_endpoint or (endpoint, current_endpoint) in spl_active:
-                                maincls = "active"
+                                maincls = maincls + " active" if maincls else "active" 
 
                         navtabs.append((endpoint, href, maincls, iconcls, title, label))
         return navtabs