Fix editor toggle on touchscreens
This commit is contained in:
parent
b583022fd7
commit
978445d551
@ -5,12 +5,8 @@
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Toggle the setting to use the alternate note editor.
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function toggleeditor() {
|
||||
var toggle = app.toggle.get('.item-content[data-setting=editor] .toggle');
|
||||
console.log(toggle.checked);
|
||||
localStorage.setItem("alternateeditor", toggle.checked);
|
||||
}
|
||||
$('.item-content[data-setting=editor] .toggle input').on("change", function () {
|
||||
var checked = $(this).prop('checked');
|
||||
console.log(checked);
|
||||
localStorage.setItem("alternateeditor", checked);
|
||||
})
|
@ -89,7 +89,7 @@ var routes = [
|
||||
text: "Turn on if you're having issues editing notes.",
|
||||
toggle: true,
|
||||
checked: localStorage.getItem("alternateeditor") == "true",
|
||||
onclick: "toggleeditor();"
|
||||
onclick: ""
|
||||
},
|
||||
{
|
||||
setting: "versions",
|
||||
|
Loading…
x
Reference in New Issue
Block a user