From e1164d50b9146b5f0299d18c13ef08aaf4dac2c5 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 2 Mar 2009 15:44:05 +0000 Subject: [PATCH] hide the grid before pane is built so user gets immediate feedback, reducing chance of re-clicks git-svn-id: svn://svn.open-ils.org/ILS/trunk@12346 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 69942845f7..e26fe8978d 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -230,27 +230,27 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { _drawEditPane : function(storeItem, rowIndex) { var self = this; var done = function() { self.hidePane(); }; + dojo.style(this.domNode, 'display', 'none'); this.editPane = this._makeEditPane(storeItem, rowIndex, done, done); this.editPane.startup(); this.domNode.parentNode.insertBefore(this.editPane.domNode, this.domNode); - dojo.style(this.domNode, 'display', 'none'); }, showClonePane : function(storeItem, rowIndex) { var self = this; var done = function() { self.hidePane(); }; + dojo.style(this.domNode, 'display', 'none'); this.editPane = this._makeClonePane(storeItem, rowIndex, done, done); this.domNode.parentNode.insertBefore(this.editPane.domNode, this.domNode); - dojo.style(this.domNode, 'display', 'none'); }, showCreatePane : function() { var self = this; var done = function() { self.hidePane(); }; + dojo.style(this.domNode, 'display', 'none'); this.editPane = this._makeCreatePane(done, done); this.editPane.startup(); this.domNode.parentNode.insertBefore(this.editPane.domNode, this.domNode); - dojo.style(this.domNode, 'display', 'none'); }, hideDialog : function() { -- 2.11.0