update grid after dialog hide. use the new attr() call to set the grid structure
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 May 2009 15:30:34 +0000 (15:30 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 May 2009 15:30:34 +0000 (15:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13075 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoGrid.js

index 0926554..d564800 100644 (file)
@@ -29,7 +29,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
                 openils.widget.AutoGrid.gridCache[this.sequence] = this;
                 this.inherited(arguments);
                 this.initAutoEnv();
-                this.setStructure(this._compileStructure());
+                this.attr('structure', this._compileStructure());
                 this.setStore(this.buildAutoStore());
                 this.overrideEditWidgets = {};
                 this.overrideEditWidgetClass = {};
@@ -371,6 +371,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
                 this.editDialog.hide(); 
                 this.editDialog.destroy(); 
                 delete this.editDialog;
+                this.update();
             },
 
             hidePane : function() {