This commit is contained in:
Mo Bitar
2016-12-30 00:07:13 -06:00
parent 110dc4e758
commit d5d1b2b7f7
6 changed files with 67 additions and 93 deletions

View File

@@ -207,8 +207,9 @@ angular.module('app.frontend')
var original = this.note.presentation_name;
this.note.presentation_name = this.url.token;
modelManager.addDirtyItems([this.note]);
apiController.saveItems([this.note], function(response){
apiController.sync(function(response){
if(!response) {
this.note.presentation_name = original;
this.url.token = original;