Wait until servers are reloaded

This commit is contained in:
Björn Dahlgren 2014-04-06 21:03:44 +00:00
parent 7d11af4633
commit 8ed68c0a4d

View File

@ -29,8 +29,9 @@ define(function (require) {
this.model.save({}, {
success: function() {
modal.close();
self.servers.fetch();
self.servers.fetch({success : function () {
Backbone.history.navigate('#servers/' + self.model.get('id'), true);
}});
},
error: function() {
alert("Error :(");