From fd9fb9ee7811f6b7fa9dcb4f6301c2dfc4fcf89d Mon Sep 17 00:00:00 2001 From: Steven Chan Date: Mon, 5 Aug 2013 12:13:54 -0400 Subject: [PATCH] Fix LP985075, cannot save Patron Acquisition Request form The form is shown using a dojo EditPane attached to an EditDialog, however, attaching the pane was done manually, resulting in the dialog acting improperly and the pane positioned improperly. Instead, we use dojo's attr method to define the content attribute of the dialog to be the pane. Signed-off-by: Steven Chan Signed-off-by: Remington Steed Signed-off-by: Ben Shum --- Open-ILS/web/js/dojo/openils/widget/EditDialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/EditDialog.js b/Open-ILS/web/js/dojo/openils/widget/EditDialog.js index 08a22dece5..bcdeb569cf 100644 --- a/Open-ILS/web/js/dojo/openils/widget/EditDialog.js +++ b/Open-ILS/web/js/dojo/openils/widget/EditDialog.js @@ -50,8 +50,7 @@ if(!dojo._hasResource['openils.widget.EditDialog']) { */ startup : function() { this.inherited(arguments); - this.editPane.startup(); - this.domNode.appendChild(this.editPane.domNode); + this.attr('content', this.editPane); openils.Util.addCSSClass(this.editPane.table, 'oils-fm-edit-dialog'); } } -- 2.43.2