X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-themes.js;h=3c5d5c57b5f82db72b7b5310ae10d8560dfaa164;hb=a8dc218ceb178e05b574deed4090503fa9be3502;hp=45bd63cfa8ed4db05e333c81391858e986f613ad;hpb=898dded38238e89ca0932d23a6a4d3b3759c9cbf;p=gruntmaster-page.git diff --git a/js/90-themes.js b/js/90-themes.js index 45bd63c..3c5d5c5 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -12,14 +12,16 @@ } $( document ).ready(function() { + $('#theme-selector').detach().prependTo($('#sidebar')); $('#theme_slate' ).on('click', function () { set_style("slate"); }); - $('#theme_cerulean').on('click', function () { set_style("cerulean"); }); $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); }); - $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); }); + $('#theme_readable').on('click', function () { set_style("readable"); }); }); var theme = localStorage.getItem("theme"); if(theme) { + if(theme == "cerulean" || theme == "cosmo") + theme = "readable"; set_style(theme); } })();