hide the grid before pane is built so user gets immediate feedback, reducing chance...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Mar 2009 15:44:05 +0000 (15:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Mar 2009 15:44:05 +0000 (15:44 +0000)
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

index 6994284..e26fe89 100644 (file)
@@ -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() {