Skip to content

Commit

Permalink
Trim spaces to save on database.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Aug 15, 2019
1 parent ac22e7f commit 189d0be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ View.prototype = {
},
250,
function () {
MediumEditor.selection.clearSelection(document, false);
modalcontent.focus();
}
);
Expand All @@ -287,8 +286,8 @@ View.prototype = {
if (id === -1)
return;

var title = $('#modal-note-div #title-editable').html();
var content = $('#modal-note-div #content-editable').html();
var title = $('#modal-note-div #title-editable').html().trim();
var content = $('#modal-note-div #content-editable').html().trim();
var color = this.colorToHex($("#modal-note-div .quicknote").css("background-color"));

/*
Expand Down

0 comments on commit 189d0be

Please sign in to comment.