From d4e67fa909be91c5918bf08a96566e7e6d1040dd Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 19 Jun 2012 10:18:44 -0400 Subject: [PATCH] Flattener grid defines override args in constructor ...instead of the seconday load handler. Otherwise, the grid.overrideEditWidget, etc. containers may be undefined at page load time. Signed-off-by: Bill Erickson Signed-off-by: Dan Scott --- Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js index 0b1914ec85..769178962e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js @@ -379,6 +379,10 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { this.fmIdentifier = this.fmIdentifier || fieldmapper.IDL.fmclasses[this.fmClass].pkey; + + this.overrideEditWidgets = {}; + this.overrideEditWidgetClass = {}; + this.overrideWidgetArgs = {}; }, "startup": function() { @@ -459,10 +463,6 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { this._showing_create_pane = false; - this.overrideEditWidgets = {}; - this.overrideEditWidgetClass = {}; - this.overrideWidgetArgs = {}; - if (this.editOnEnter) this._applyEditOnEnter(); else if (this.singleEditStyle) -- 2.11.0