From 2cdbce62e9e39c8799174e1019e080b4fa4155ac Mon Sep 17 00:00:00 2001 From: Jeremy Goecks Date: Fri, 7 Feb 2014 15:02:49 -0500 Subject: [PATCH] Backbone config settings view: hide modal before updating model. --- static/scripts/utils/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/scripts/utils/config.js b/static/scripts/utils/config.js index 83a3e93d3c6..86920bf7a86 100644 --- a/static/scripts/utils/config.js +++ b/static/scripts/utils/config.js @@ -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