zet-lib 1.2.62 → 1.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/moduleLib.js +2 -2
- package/package.json +1 -1
package/lib/moduleLib.js
CHANGED
|
@@ -270,7 +270,7 @@ m.typeahead = (req, res, table, elem) => {
|
|
|
270
270
|
$("${element}").val("");
|
|
271
271
|
$("${element}").change();
|
|
272
272
|
});${Util.newLine}`
|
|
273
|
-
script += `$("${elem}").typeahead({highlight:
|
|
273
|
+
script += `$("${elem}").typeahead({highlight:true,minLength:2,source: function (query, asyncprocess) {
|
|
274
274
|
jQuery.ajax({
|
|
275
275
|
url : "/ztypeahead/${table}/${key}",
|
|
276
276
|
type : 'GET',
|
|
@@ -315,7 +315,7 @@ m.typeaheadFile = (req, res, elem, data) => {
|
|
|
315
315
|
$("${element}").val("");
|
|
316
316
|
$("${element}").change();
|
|
317
317
|
});${Util.newLine}`
|
|
318
|
-
script += `$("${elem}").typeahead({highlight: true,source:${elemData}Data, items: 50, displayText: function (item) {
|
|
318
|
+
script += `$("${elem}").typeahead({highlight: true,minLength:2,source:${elemData}Data, items: 50, displayText: function (item) {
|
|
319
319
|
return item.zname.toString();
|
|
320
320
|
},
|
|
321
321
|
updater:function (item) {
|