aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-03-09 18:51:13 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-03-10 16:10:15 +0000
commitf2756c4c825ba73c76fafd84acc3663ea410858a (patch)
treeb32d957d96541aba24b597eb60a6d607e72de469 /templates
parent7074b5713d08636589be1682dcd31cd3d7542638 (diff)
Move staff-only JavaScript to separate file.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/common_scripts.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/web/base/common_scripts.html b/templates/web/base/common_scripts.html
index 1d53f1d51..42c04f11f 100644
--- a/templates/web/base/common_scripts.html
+++ b/templates/web/base/common_scripts.html
@@ -16,6 +16,12 @@ scripts.push(
version('/cobrands/fixmystreet/fixmystreet.js'),
);
+IF c.user_exists AND (c.user.from_body OR c.user.is_superuser);
+ scripts.push(
+ version('/cobrands/fixmystreet/staff.js')
+ );
+END;
+
FOR script IN map_js;
scripts.push(script);
END;
@@ -28,7 +34,7 @@ scripts.push(
IF admin;
scripts.push(
version('/js/jquery-ui/js/jquery-ui-1.10.3.custom.min.js'),
- version('/js/fixmystreet-admin.js'),
+ version('/cobrands/fixmystreet/admin.js'),
);
END;