offline callback
This commit is contained in:
@@ -71,10 +71,7 @@ angular.module('app.frontend')
|
||||
// if no more notes, delete tag
|
||||
syncManager.sync(function(){
|
||||
// force scope tags to update on sub directives
|
||||
$scope.tags = [];
|
||||
$timeout(function(){
|
||||
$scope.tags = modelManager.tags;
|
||||
})
|
||||
$scope.safeApply();
|
||||
});
|
||||
} else {
|
||||
alert("To delete this tag, remove all its notes first.");
|
||||
|
||||
@@ -50,11 +50,12 @@ class SyncManager {
|
||||
this.modelManager.removeItemLocally(item);
|
||||
}
|
||||
}
|
||||
|
||||
if(callback) {
|
||||
callback({success: true});
|
||||
}
|
||||
}.bind(this))
|
||||
|
||||
if(callback) {
|
||||
callback({success: true});
|
||||
}
|
||||
}
|
||||
|
||||
markAllItemsDirtyAndSaveOffline(callback) {
|
||||
|
||||
Reference in New Issue
Block a user