[open-ils-commits] r12305 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 26 10:36:36 EST 2009
Author: erickson
Date: 2009-02-26 10:36:34 -0500 (Thu, 26 Feb 2009)
New Revision: 12305
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js
trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js
Log:
apply the edit dialog class in the dialog, not the editpane
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js 2009-02-26 02:23:21 UTC (rev 12304)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js 2009-02-26 15:36:34 UTC (rev 12305)
@@ -13,6 +13,7 @@
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
@@ -49,6 +50,7 @@
this.inherited(arguments);
this.editPane.startup();
this.domNode.appendChild(this.editPane.domNode);
+ openils.Util.addCSSClass(this.editPane.table, 'oils-fm-edit-dialog');
}
}
);
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js 2009-02-26 02:23:21 UTC (rev 12304)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js 2009-02-26 15:36:34 UTC (rev 12305)
@@ -32,7 +32,7 @@
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);
@@ -80,8 +80,6 @@
}
if(!this.hideActionButtons)
this.buildActionButtons(tbody);
-
- openils.Util.addCSSClass(table, 'oils-fm-edit-dialog');
},
applySaveOnEnter : function(widget) {
More information about the open-ils-commits
mailing list