From 402214460813cdd1990363deadc431191a627382 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 28 Jan 2014 14:08:00 +0200 Subject: [PATCH] Fix yardi logo for hopefully the last time --- js/scripts.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"); }) } -- 2.30.2