Fix LP985075, cannot save Patron Acquisition Request form user/rsteed/lp985075_patron_acq_request_form
authorSteven Chan <schan@sitka.bclibraries.ca>
Mon, 5 Aug 2013 16:13:54 +0000 (12:13 -0400)
committerRemington Steed <rjs7@calvin.edu>
Mon, 5 Aug 2013 17:54:56 +0000 (13:54 -0400)
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 <schan@sitka.bclibraries.ca>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Open-ILS/web/js/dojo/openils/widget/EditDialog.js

index 08a22de..bcdeb56 100644 (file)
@@ -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');
             }
         }