From: Marius Gavrilescu Date: Tue, 28 Jan 2014 12:08:00 +0000 (+0200) Subject: Fix yardi logo for hopefully the last time X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=402214460813cdd1990363deadc431191a627382;p=mindcoding-template-patches.git Fix yardi logo for hopefully the last time --- diff --git a/js/scripts.js b/js/scripts.js index f11336a..6e0827d 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -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"); }) }