HTML previews

This commit is contained in:
Mo Bitar
2018-10-17 13:42:24 -05:00
parent 8a537b86df
commit 87485584ec
9 changed files with 788 additions and 15 deletions

View File

@@ -2,7 +2,9 @@
var SN = SN || {};
angular.module('app', [])
angular.module('app', [
'ngSanitize'
])
function getParameterByName(name, url) {
name = name.replace(/[\[\]]/g, "\\$&");

View File

@@ -391,6 +391,12 @@ angular.module('app')
this.changesMade({dontUpdateClientModified});
}
this.toggleNotePreview = function() {
this.note.content.hidePreview = !this.note.content.hidePreview;
var dontUpdateClientModified = true;
this.changesMade({dontUpdateClientModified});
}
this.toggleArchiveNote = function() {
this.note.setAppDataItem("archived", !this.note.archived);
this.changesMade({bypassDebouncer: true});