added routes for add series.

This commit is contained in:
Keivan Beigi
2013-01-28 18:00:35 -08:00
committed by kay.one
parent 13aa79d5f9
commit 159585553c
4 changed files with 65 additions and 17 deletions
@@ -78,8 +78,13 @@ NzbDrone.AddSeries.RootDirView = Backbone.Marionette.Layout.extend({
Path: this.ui.pathInput.val()
});
this.collection.create(newDir, { wait: true });
this.collection.fetch();
var self = this;
this.collection.create(newDir, {
wait: true, success: function () {
self.collection.fetch();
}
});
},
search: function (context) {