From: Steven Chan Date: Mon, 5 Aug 2013 16:13:54 +0000 (-0400) Subject: Fix LP985075, cannot save Patron Acquisition Request form X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fd9fb9ee7811f6b7fa9dcb4f6301c2dfc4fcf89d;p=evergreen%2Fpines.git 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 --- 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'); } }