[open-ils-commits] r15730 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 8 08:59:58 EST 2010
Author: erickson
Date: 2010-03-08 08:59:56 -0500 (Mon, 08 Mar 2010)
New Revision: 15730
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
plugged in fund search format. it's like label format, except the search format gives us the type-ahead searching and it defines the format of the data in the value field of the select widget
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 2010-03-08 03:18:27 UTC (rev 15729)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-08 13:59:56 UTC (rev 15730)
@@ -23,6 +23,7 @@
var li_exportable_attrs = ["issn", "isbn", "upc"];
var fundLabelFormat = ['${0} (${1})', 'code', 'year'];
+var fundSearchFormat = ['${0} (${1})', 'code', 'year'];
function nodeByName(name, context) {
return dojo.query('[name='+name+']', context)[0];
@@ -1052,6 +1053,7 @@
fmField : field,
fmClass : 'acqlid',
labelFormat : (field == 'fund') ? fundLabelFormat : null,
+ searchFormat : (field == 'fund') ? fundSearchFormat : null,
parentNode : dojo.query('[name='+field+']', row)[0],
orgLimitPerms : ['CREATE_PICKLIST'],
dijitArgs : {required:false},
@@ -1148,6 +1150,7 @@
fmObject : copy,
fmField : field,
labelFormat : (field == 'fund') ? fundLabelFormat : null,
+ searchFormat : (field == 'fund') ? fundSearchFormat : null,
fmClass : 'acqlid',
parentNode : dojo.query('[name='+field+']', row)[0],
orgLimitPerms : ['CREATE_PICKLIST', 'CREATE_PURCHASE_ORDER'],
More information about the open-ils-commits
mailing list