(js) Remove empty error callbacks for promises
This commit is contained in:
parent
c4fdba678e
commit
0236d9ef46
|
@ -416,8 +416,6 @@
|
||||||
Message.$$resource.post([this.$absolutePath(), path].join('/'), action, data).then(function(data) {
|
Message.$$resource.post([this.$absolutePath(), path].join('/'), action, data).then(function(data) {
|
||||||
Message.$timeout(function() {
|
Message.$timeout(function() {
|
||||||
_this.$reload();
|
_this.$reload();
|
||||||
}, function() {
|
|
||||||
// TODO: show toast
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -81,8 +81,6 @@
|
||||||
// User confirmed the deletion
|
// User confirmed the deletion
|
||||||
var components = _.filter(Component['$' + vm.componentType], function(component) { return component.selected; });
|
var components = _.filter(Component['$' + vm.componentType], function(component) { return component.selected; });
|
||||||
Calendar.$deleteComponents(components);
|
Calendar.$deleteComponents(components);
|
||||||
}, function(data, status) {
|
|
||||||
// Delete failed
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue