[open-ils-commits] r12346 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 2 10:44:08 EST 2009


Author: erickson
Date: 2009-03-02 10:44:05 -0500 (Mon, 02 Mar 2009)
New Revision: 12346

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
Log:
hide the grid before pane is built so user gets immediate feedback, reducing chance of re-clicks

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js	2009-03-02 15:41:32 UTC (rev 12345)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js	2009-03-02 15:44:05 UTC (rev 12346)
@@ -230,27 +230,27 @@
             _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() {



More information about the open-ils-commits mailing list