mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Trim spaces to save on database.
This commit is contained in:
@@ -275,7 +275,6 @@ View.prototype = {
|
|||||||
},
|
},
|
||||||
250,
|
250,
|
||||||
function () {
|
function () {
|
||||||
MediumEditor.selection.clearSelection(document, false);
|
|
||||||
modalcontent.focus();
|
modalcontent.focus();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -287,8 +286,8 @@ View.prototype = {
|
|||||||
if (id === -1)
|
if (id === -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var title = $('#modal-note-div #title-editable').html();
|
var title = $('#modal-note-div #title-editable').html().trim();
|
||||||
var content = $('#modal-note-div #content-editable').html();
|
var content = $('#modal-note-div #content-editable').html().trim();
|
||||||
var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color"));
|
var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color"));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user