mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Update edit and publish icon and change toggle icon to make it straightforward, and add shortcut key reminder in modes' title
This commit is contained in:
parent
9d71adc05c
commit
3840308ab6
2 changed files with 11 additions and 11 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue