HTML previews
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
var SN = SN || {};
|
||||
|
||||
angular.module('app', [])
|
||||
angular.module('app', [
|
||||
'ngSanitize'
|
||||
])
|
||||
|
||||
function getParameterByName(name, url) {
|
||||
name = name.replace(/[\[\]]/g, "\\$&");
|
||||
|
||||
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user