Fix LP985075, cannot save Patron Acquisition Request form
authorSteven Chan <schan@sitka.bclibraries.ca>
Mon, 5 Aug 2013 16:13:54 +0000 (12:13 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 16 Aug 2013 00:40:32 +0000 (20:40 -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>
Signed-off-by: Ben Shum <bshum@biblio.org>
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');
             }
         }