From 5ff57be0ce047ce7cb6c2b10f8298b0b3d42fee6 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 8 Mar 2010 13:59:56 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@15730 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index ddb3fe7541..87953ccee3 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -23,6 +23,7 @@ const XUL_OPAC_WRAPPER = 'chrome://open_ils_staff_client/content/cat/opac.xul'; 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 @@ function AcqLiTable() { 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 @@ function AcqLiTable() { 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'], -- 2.11.0