From 3840308ab6cbda7a9a9aa57f1700165e7c95d250 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 18 Sep 2016 16:32:26 +0800 Subject: Update edit and publish icon and change toggle icon to make it straightforward, and add shortcut key reminder in modes' title --- public/js/index.js | 6 +++--- public/views/header.ejs | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'public') diff --git a/public/js/index.js b/public/js/index.js index d9e4955f..c800cd9d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1197,16 +1197,16 @@ function changeMode(type) { ui.toolbar.edit.removeClass("active"); ui.toolbar.view.removeClass("active"); var modeIcon = ui.toolbar.mode.find('i'); - modeIcon.removeClass('fa-toggle-on').removeClass('fa-toggle-off'); + modeIcon.removeClass('fa-pencil').removeClass('fa-eye'); if (ui.area.edit.is(":visible") && ui.area.view.is(":visible")) { //both ui.toolbar.both.addClass("active"); modeIcon.addClass('fa-eye'); } else if (ui.area.edit.is(":visible")) { //edit ui.toolbar.edit.addClass("active"); - modeIcon.addClass('fa-toggle-off'); + modeIcon.addClass('fa-eye'); } else if (ui.area.view.is(":visible")) { //view ui.toolbar.view.addClass("active"); - modeIcon.addClass('fa-toggle-on'); + modeIcon.addClass('fa-pencil'); } unlockNavbar(); } diff --git a/public/views/header.ejs b/public/views/header.ejs index d2b1ec1e..bb4e3174 100644 --- a/public/views/header.ejs +++ b/public/views/header.ejs @@ -24,7 +24,7 @@
- +