From: Marius Gavrilescu Date: Sat, 18 Apr 2015 08:08:56 +0000 (+0300) Subject: Fix 90-themes.js X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=sidebyside;h=57b322a1b172eb2acf33a8876aef8ebaf9c31c26;p=gruntmaster-page.git Fix 90-themes.js --- diff --git a/js/90-themes.js b/js/90-themes.js index c872919..0e48176 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -11,7 +11,7 @@ $(function() { '
  • White'; var sidebar = $('#sidebar')[0]; sidebar.insertBefore(m(theme_ul), sidebar.firstChild); - $('#themes a').on('click', e => set_style(this.dataset.theme)); + $('#themes a').on('click', e => set_style(e.target.dataset.theme)); }); let theme = localStorage.getItem("theme");