[open-ils-commits] r12587 - in trunk/Open-ILS/web: js/ui/default/acq/common templates/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 18 19:04:47 EDT 2009
Author: erickson
Date: 2009-03-18 19:04:46 -0400 (Wed, 18 Mar 2009)
New Revision: 12587
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
Log:
no need to special case the text widgets
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-03-18 21:41:06 UTC (rev 12586)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-03-18 23:04:46 UTC (rev 12587)
@@ -227,7 +227,7 @@
this.copyCache[copy.id()] = copy;
row.setAttribute('copy_id', copy.id());
- dojo.forEach(['fund', 'owning_lib', 'location'],
+ dojo.forEach(['fund', 'owning_lib', 'location', 'barcode', 'cn_label'],
function(field) {
var widget = new openils.widget.AutoFieldWidget({
fmObject : copy,
@@ -249,11 +249,6 @@
}
);
- if(!copy.isnew()) {
- dojo.query('[name=barcode]', row)[0].value = copy.barcode();
- dojo.query('[name=cn_label]', row)[0].value = copy.cn_label();
- }
-
var self = this;
dojo.query('[name=delete]', row)[0].onclick =
function() { self.deleteCopy(row) };
Modified: trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2009-03-18 21:41:06 UTC (rev 12586)
+++ trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2009-03-18 23:04:46 UTC (rev 12587)
@@ -105,8 +105,8 @@
<td><div name='owning_lib'/></td>
<td><div name='location'/></td>
<td><div name='fund'/></td>
- <td><input type='text' name='barcode'/></td>
- <td><input type='text' name='cn_label'/></td>
+ <td><div name='barcode'/></td>
+ <td><div name='cn_label'/></td>
<td><div name='delete' dojoType='dijit.form.Button' style='color:red;'>X</div></td>
</tr>
</tbody>
More information about the open-ils-commits
mailing list