1 if(!dojo._hasResource['openils.widget.EditDialog']) {
2 dojo.provide('openils.widget.EditDialog');
3 dojo.require('openils.widget.EditPane');
4 dojo.require('dijit.Dialog');
8 * Given a fieldmapper object, this builds a pop-up dialog used for editing the object
12 'openils.widget.EditDialog',
15 editPane : null, // reference to our EditPane object
17 constructor : function() {
18 this.editPane = new openils.widget.EditPane();
20 this.editPane.onCancel = function() { self.hide(); }
21 this.editPane.onPostApply = function() { self.hide(); }
25 * Builds a basic table of key / value pairs. Keys are IDL display labels.
26 * Values are dijit's, when values set
28 startup : function() {
29 this.inherited(arguments);
30 this.editPane.startup();
31 this.domNode.appendChild(this.editPane.domNode);