From: Marius Gavrilescu Date: Tue, 10 Mar 2015 19:09:10 +0000 (+0200) Subject: Use alternate stylesheets X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d53c616a782a89da8c980d29ee65d1f3b34b6f27;p=plack-app-gruntmaster.git Use alternate stylesheets --- diff --git a/js/90-themes.js b/js/90-themes.js index 1e6fdce..7221dde 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -1,7 +1,8 @@ (function(){ 'use strict'; function set_style(name){ - $('#stylesheet').attr("href", "/static/css/" + name + ".css"); + $('link[rel~="stylesheet"]').prop('disabled', true); + $('link[title="' + name + '"]').prop('disabled', false); localStorage.setItem("theme", name); } diff --git a/tmpl/skel.en b/tmpl/skel.en index 93e07b8..b713e0e 100644 --- a/tmpl/skel.en +++ b/tmpl/skel.en @@ -3,7 +3,9 @@ - + + +