Backbone config settings view: hide modal before updating model.

This commit is contained in:
Jeremy Goecks
2014-02-07 15:02:49 -05:00
parent 3c1983a3d4
commit 2cdbce62e9
+1 -1
View File
@@ -225,9 +225,9 @@ var ConfigSettingCollectionView = Backbone.View.extend({
var self = this,
cancel_fn = function() { Galaxy.modal.hide(); $(window).unbind("keypress.check_enter_esc"); },
ok_fn = function() {
self.update_from_form();
Galaxy.modal.hide();
$(window).unbind("keypress.check_enter_esc");
self.update_from_form();
},
check_enter_esc = function(e) {
if ((e.keyCode || e.which) === 27) { // Escape key