[open-ils-commits] r12078 - trunk/Open-ILS/web/js/dojo/openils/widget
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 5 11:03:27 EST 2009
Author: erickson
Date: 2009-02-05 11:03:25 -0500 (Thu, 05 Feb 2009)
New Revision: 12078
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js
Log:
give dojo a td and it will replace it with the dijit node, so give dojo a sub-node to clobber instead
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js 2009-02-05 14:36:42 UTC (rev 12077)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js 2009-02-05 16:03:25 UTC (rev 12078)
@@ -46,6 +46,8 @@
var row = document.createElement('tr');
var nameTd = document.createElement('td');
var valTd = document.createElement('td');
+ var valSpan = document.createElement('span');
+ valTd.appendChild(valSpan);
nameTd.appendChild(document.createTextNode(field.label));
row.appendChild(nameTd);
@@ -55,7 +57,7 @@
var widget = new openils.widget.AutoFieldWidget({
idlField : field,
fmObject : this.fmObject,
- parentNode : valTd,
+ parentNode : valSpan,
orgLimitPerms : this.limitPerms
});
@@ -83,20 +85,24 @@
var row = document.createElement('tr');
var cancelTd = document.createElement('td');
var applyTd = document.createElement('td');
+ var cancelSpan = document.createElement('span');
+ var applySpan = document.createElement('span');
row.appendChild(cancelTd);
row.appendChild(applyTd);
+ cancelTd.appendChild(cancelSpan);
+ applyTd.appendChild(applySpan);
tbody.appendChild(row);
var self = this;
new dijit.form.Button({
label:'Cancel', // XXX
onClick : this.onCancel
- }, cancelTd);
+ }, cancelSpan);
new dijit.form.Button({
label:'Save', // XXX
onClick: function() {self.performAutoEditAction();}
- }, applyTd);
+ }, applySpan);
},
getFields : function() {
More information about the open-ils-commits
mailing list