dojo.provide('openils.widget.EditDialog');
dojo.require('openils.widget.EditPane');
dojo.require('dijit.Dialog');
+ dojo.require('openils.Util');
/**
* Given a fieldmapper object, this builds a pop-up dialog used for editing the object
this.inherited(arguments);
this.editPane.startup();
this.domNode.appendChild(this.editPane.domNode);
+ openils.Util.addCSSClass(this.editPane.table, 'oils-fm-edit-dialog');
}
}
);
if(this.readOnly)
this.hideActionButtons = true;
- var table = document.createElement('table');
+ var table = this.table = document.createElement('table');
var tbody = document.createElement('tbody');
this.domNode.appendChild(table);
table.appendChild(tbody);
}
if(!this.hideActionButtons)
this.buildActionButtons(tbody);
-
- openils.Util.addCSSClass(table, 'oils-fm-edit-dialog');
},
applySaveOnEnter : function(widget) {