aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/barnet/javascript/styleswitch.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-16 14:30:30 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-16 14:30:30 +0100
commitd9f3bd47a94116871893f0417e7c836400bb04eb (patch)
tree1c140a6cb9ea3fd60dbf1532d2cb0bcfdaa703ad /web/cobrands/barnet/javascript/styleswitch.js
parent1ba0a33c9fa19f2fa46f16678785d1c90ed33eb0 (diff)
parent194173589eed229567646cedfc0e32621d18f1e7 (diff)
Merge branch 'master' into bromley
Conflicts: bin/send-reports conf/crontab.ugly conf/general.yml-example db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/DB/Result/Comment.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/Result/User.pm templates/web/default/js/validation_strings.html templates/web/fixmystreet/auth/sign_out.html templates/web/fixmystreet/report/new/councils_text_all.html web/cobrands/fixmystreet/_base.scss
Diffstat (limited to 'web/cobrands/barnet/javascript/styleswitch.js')
-rw-r--r--web/cobrands/barnet/javascript/styleswitch.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/web/cobrands/barnet/javascript/styleswitch.js b/web/cobrands/barnet/javascript/styleswitch.js
deleted file mode 100644
index c4afb0b28..000000000
--- a/web/cobrands/barnet/javascript/styleswitch.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
-* Styleswitch stylesheet switcher built on jQuery
-* Under an Attribution, Share Alike License
-* By Kelvin Luck ( http://www.kelvinluck.com/ )
-**/
-
-$(document).ready(function() {
- $('.styleswitch').click(function()
- {
- switchStylestyle(this.getAttribute("rel"));
- return false;
- });
- var c = readCookie('style');
- if (c) switchStylestyle(c);
-});
-
-function switchStylestyle(styleName)
-{
- $('link[@rel*=style][@title]').each(function(i)
- {
- this.disabled = true;
- if (this.getAttribute('title') == styleName) this.disabled = false;
- });
- createCookie('style', styleName, 365);
-}
-