]> iEval git - gruntmaster-page.git/commitdiff
Fix 90-themes.js
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 18 Apr 2015 08:08:56 +0000 (11:08 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 18 Apr 2015 08:52:00 +0000 (11:52 +0300)
js/90-themes.js

index c87291949e978a5af15fba9207b7ed72e104a09a..0e481761002282633ab60569d9a6ba27f195b9e0 100644 (file)
@@ -11,7 +11,7 @@ $(function() {
                '<li><a role="button" data-theme="readable">White</a></ul>';
        var sidebar = $('#sidebar')[0];
        sidebar.insertBefore(m(theme_ul), sidebar.firstChild);
                '<li><a role="button" data-theme="readable">White</a></ul>';
        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");
 });
 
 let theme = localStorage.getItem("theme");
This page took 0.026099 seconds and 4 git commands to generate.