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