From: erickson Date: Thu, 5 Feb 2009 16:21:43 +0000 (+0000) Subject: allow for definition of default cell width. (can still be overridden by defining... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a249ad4e1240b1e15f7d915e1606051c3791c8dd;p=Evergreen.git allow for definition of default cell width. (can still be overridden by defining cell widths in the grid) git-svn-id: svn://svn.open-ils.org/ILS/trunk@12080 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 4c44d1ebb4..b40e629ffe 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -13,6 +13,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { /* if true, pop up an edit dialog when user hits Enter on a give row */ editOnEnter : false, + defaultCellWidth : null, startup : function() { @@ -33,6 +34,8 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { fields.push(entry); if(!entry.get) entry.get = openils.widget.AutoGrid.defaultGetter + if(!entry.width && this.defaultCellWidth) + entry.width = this.defaultCellWidth; } this.setStructure([{cells: [fields]}]); diff --git a/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2 b/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2 index 8761c5ed37..bbf1c0a56f 100644 --- a/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2 +++ b/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2 @@ -21,35 +21,6 @@ } openils.Util.addOnLoad(renderGrid); - - -
Exchange Rates
@@ -57,7 +28,7 @@