[open-ils-commits] r15265 - in trunk/Open-ILS/web/js/dojo/openils: . widget (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 6 16:48:46 EST 2010


Author: phasefx
Date: 2010-01-06 16:48:40 -0500 (Wed, 06 Jan 2010)
New Revision: 15265

Modified:
   trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js
   trunk/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js
Log:
fix dojo columnpicker glitches for restrained window dimensions

Modified: trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js	2010-01-06 18:13:28 UTC (rev 15264)
+++ trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js	2010-01-06 21:48:40 UTC (rev 15265)
@@ -30,7 +30,7 @@
             this.dialog = dialog;
             this.grid = grid;
             this.structure = structure;
-            this.dialogTable = dialog.domNode.getElementsByTagName('tbody')[0];
+            this.dialogTable = dialog.containerNode.getElementsByTagName('tbody')[0];
             this.baseCellList = this.structure[0].cells[0].slice();
             this.build();
             this.grid.model.fields.get(0).sort = false;

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js	2010-01-06 18:13:28 UTC (rev 15264)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js	2010-01-06 21:48:40 UTC (rev 15265)
@@ -36,7 +36,7 @@
             this.structure = structure;
             if(!structure) 
                 this.structure = this.grid.attr('structure');
-            this.dialogTable = this.dialog.domNode.getElementsByTagName('tbody')[0];
+            this.dialogTable = this.dialog.containerNode.getElementsByTagName('tbody')[0];
             this.baseCellList = this.structure[0].cells[0].slice();
             this.build();
             this.authtoken = authtoken;
@@ -61,7 +61,7 @@
                 "<thead><tr><th width='33%'>Column</th><th width='33%'>Display</th><th width='33%'>Auto Width</th></tr></thead>" +
                 "<tbody><tr><td><div name='cancel_button'/></td><td><div name='save_button'/></td></tr></tbody></table>" });
 
-            dialog.domNode.appendChild(table);
+            dialog.containerNode.appendChild(table);
 
             var button = new dijit.form.Button({label:'Save'}, dojo.query('[name=save_button]', table)[0]);
             button.onClick = function() { dialog.hide(); self.update(true); };



More information about the open-ils-commits mailing list