Couple fixes

This commit is contained in:
Mark McDowall
2015-01-31 00:31:40 -08:00
parent e641611662
commit 43e4c16cbf
2 changed files with 7 additions and 1 deletions

View File

@@ -17,7 +17,8 @@ define(
},
ui: {
'import' : '.x-import'
import : '.x-import',
grab : '.x-grab'
},
render: function () {
@@ -90,6 +91,8 @@ define(
data: JSON.stringify(this.model.toJSON())
});
$(this.ui.grab).spinForPromise(promise);
promise.success(function () {
//find models that have the same series id and episode ids and remove them
self.model.trigger('destroy', self.model);