|
|
|
@ -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);
|
|
|
|
|
})
|