From: phasefx Date: Wed, 6 Jan 2010 21:48:40 +0000 (+0000) Subject: fix dojo columnpicker glitches for restrained window dimensions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9e58bdb4f27372972c88a40c48871a3d7d765665;p=evergreen%2Fpines.git fix dojo columnpicker glitches for restrained window dimensions git-svn-id: svn://svn.open-ils.org/ILS/trunk@15265 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/GridColumnPicker.js b/Open-ILS/web/js/dojo/openils/GridColumnPicker.js index 947601f5d9..3d00dda3bb 100644 --- a/Open-ILS/web/js/dojo/openils/GridColumnPicker.js +++ b/Open-ILS/web/js/dojo/openils/GridColumnPicker.js @@ -30,7 +30,7 @@ if(!dojo._hasResource["openils.GridColumnPicker"]) { 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; diff --git a/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js b/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js index e00823ea1d..377b934a90 100644 --- a/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js +++ b/Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js @@ -36,7 +36,7 @@ if(!dojo._hasResource["openils.widget.GridColumnPicker"]) { 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 @@ if(!dojo._hasResource["openils.widget.GridColumnPicker"]) { "ColumnDisplayAuto Width" + "
" }); - 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); };