From ae09aabeb5d7784244662daef87508faec737c51 Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Sat, 14 Jan 2017 08:46:01 +0000 Subject: [PATCH] fix highlight css selection --- data/_html-template/_layouts/page.hbs | 2 ++ data/_html-template/js/book.js | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/data/_html-template/_layouts/page.hbs b/data/_html-template/_layouts/page.hbs index 77daa7fe..457cfac9 100644 --- a/data/_html-template/_layouts/page.hbs +++ b/data/_html-template/_layouts/page.hbs @@ -17,6 +17,8 @@ + + diff --git a/data/_html-template/js/book.js b/data/_html-template/js/book.js index 8731880c..281cfd76 100644 --- a/data/_html-template/js/book.js +++ b/data/_html-template/js/book.js @@ -131,11 +131,11 @@ $( document ).ready(function() { function set_theme(theme) { if (theme == 'coal' || theme == 'navy') { - $("[href='tomorrow-night.css']").prop('disabled', false); - $("[href='highlight.css']").prop('disabled', true); + $("[href='css/tomorrow-night.css']").prop('disabled', false); + $("[href='css/highlight.css']").prop('disabled', true); } else { - $("[href='tomorrow-night.css']").prop('disabled', true); - $("[href='highlight.css']").prop('disabled', false); + $("[href='css/tomorrow-night.css']").prop('disabled', true); + $("[href='css/highlight.css']").prop('disabled', false); } localStorage.setItem('theme', theme);