diff MoinMoin/templates/modify.html @ 2523:03efbc0de719

Fixes unused variables, unnecessary global functions, variables in the main JS, linter ready, using objects.
author sharky93 <rishabhr123@gmail.com>
date Fri, 21 Jun 2013 02:27:51 +0530
parents d366d1af5e1e
children 9d9f6a7be79e
line wrap: on
line diff
--- a/MoinMoin/templates/modify.html	Wed Jun 19 03:29:05 2013 +0530
+++ b/MoinMoin/templates/modify.html	Fri Jun 21 02:27:51 2013 +0530
@@ -22,8 +22,7 @@
 {% block subitem_navigation %}
     {% call(fullname, shortname, contenttype, has_children) utils.render_subitem_navigation(item_name, True) %}
         {% set shortname = shortname|json_dumps %}
-        {% set fullname = fullname|json_dumps %}
-        <button class="moin-insertname-action" onclick='InsertName({{ fullname }})'
+        <button class="moin-insertname-action" data-name="{{ fullname }}"
             title="{{ _('Insert Name') }}">{{ _('Insert Name') }}</button>
     {% endcall %}
 {% endblock %}