2 var dialog = new openils.widget.EditDialog({
4 fieldOrder: ['id', 'name', 'description', 'start_date', 'end_date']
12 if(!dojo._hasResource['openils.widget.EditDialog']) {
13 dojo.provide('openils.widget.EditDialog');
14 dojo.require('openils.widget.EditPane');
15 dojo.require('dijit.Dialog');
18 * Given a fieldmapper object, this builds a pop-up dialog used for editing the object
22 'openils.widget.EditDialog',
25 editPane : null, // reference to our EditPane object
27 constructor : function(args) {
28 this.editPane = new openils.widget.EditPane(args);
31 this.editPane.onCancel = function() {
37 this.editPane.onPostApply = function() {
45 * Builds a basic table of key / value pairs. Keys are IDL display labels.
46 * Values are dijit's, when values set
48 startup : function() {
49 this.inherited(arguments);
50 this.editPane.startup();
51 this.domNode.appendChild(this.editPane.domNode);