]> iEval git - mindcoding-template-patches.git/commitdiff
Fix yardi logo for hopefully the last time
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 28 Jan 2014 12:08:00 +0000 (14:08 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 28 Jan 2014 12:08:00 +0000 (14:08 +0200)
js/scripts.js

index f11336a8de1103e34c4f2e87b1337800e4aebc6c..6e0827d502cbfd8f76c77e025bca4c824c0ed27c 100644 (file)
@@ -30,9 +30,10 @@ $( document ).ready(function() {
        $('#theme_cosmo'   ).on('click', function () { set_style("cosmo"); });
 });
 
-if(localStorage.getItem("theme")) {
-       set_style(localStorage.getItem("theme"));
+var theme = localStorage.getItem("theme");
+if(theme) {
+       set_style(theme);
        $(document).ready(function(){
-               $('#yardi').attr('src', name == "slate" || name == "cyborg" ? "/img/yardi-white.png" : "/img/yardi-blue.png");
+               $('#yardi').attr('src', theme == "slate" || theme == "cyborg" ? "/img/yardi-white.png" : "/img/yardi-blue.png");
        })
 }
This page took 0.024804 seconds and 4 git commands to generate.