changeset 2787:55171567f3ed

move basic.js from MoinMoin/templates to MoinMoin/static/js/
author RogerHaase <haaserd@gmail.com>
date Fri, 12 Sep 2014 14:46:18 -0700
parents a5c7b4c36373
children dde7055f4361
files MoinMoin/static/js/basic.js MoinMoin/templates/basic.js MoinMoin/themes/basic/templates/snippets.html
diffstat 3 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/static/js/basic.js	Fri Sep 12 14:46:18 2014 -0700
@@ -0,0 +1,17 @@
+/*jslint browser: true, nomen: true, todo: true*/
+/*global $:true*/
+
+$(document).ready(function () {
+    // this depends on the id's used for different tab-panes in modify.html and usersettings.html (Basic Theme)
+    "use strict";
+    $('#meta, #help').removeClass('active');
+    $('#password, #notification, #personal, #navigation, #options, #acl, #subscriptions').removeClass('active');
+    $('textarea').autosize();
+    $('div.dropup').removeClass('menu');
+    $('ul.dropdown-menu').removeClass('submenu');
+    $('.topnavcollapse').addClass('collapse');
+    $('.moin-navbar-collapse').removeClass('in');
+    if ($('li.active > a.moin-modify-button').length) {
+        $('.moin-loginsettings').addClass('moin-pull-right');
+    }
+});
--- a/MoinMoin/templates/basic.js	Fri Sep 12 10:25:06 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-/*jslint browser: true, nomen: true, todo: true*/
-/*global $:true*/
-
-$(document).ready(function () {
-    // this depends on the id's used for different tab-panes in modify.html and usersettings.html (Basic Theme)
-    "use strict";
-    $('#meta, #help').removeClass('active');
-    $('#password, #notification, #personal, #navigation, #options, #acl, #subscriptions').removeClass('active');
-    $('textarea').autosize();
-    $('div.dropup').removeClass('menu');
-    $('ul.dropdown-menu').removeClass('submenu');
-    $('.topnavcollapse').addClass('collapse');
-    $('.moin-navbar-collapse').removeClass('in');
-    if ($('li.active > a.moin-modify-button').length) {
-        $('.moin-loginsettings').addClass('moin-pull-right');
-    }
-});
--- a/MoinMoin/themes/basic/templates/snippets.html	Fri Sep 12 10:25:06 2014 -0700
+++ b/MoinMoin/themes/basic/templates/snippets.html	Fri Sep 12 14:46:18 2014 -0700
@@ -40,5 +40,5 @@
 
 {# Additional JavaScript #}
 {% macro add_scripts() -%}
-    <script src="{{ url_for('frontend.template', filename='basic.js') }}"></script>
+    <script src="{{ url_for('static', filename='js/basic.js') }}"></script>
 {% endmacro %}