zet-lib 1.0.69 → 1.0.70
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 -11
- package/package.json +1 -1
package/lib/moduleLib.js
CHANGED
|
@@ -266,17 +266,8 @@ m.typeahead = (req, res, elem, data) => {
|
|
|
266
266
|
elemData = elemData.replace('#', '')
|
|
267
267
|
let element = elem.replace('Typeahead', '')
|
|
268
268
|
|
|
269
|
-
script
|
|
270
|
-
|
|
271
|
-
elemData +
|
|
272
|
-
'Data = ' +
|
|
273
|
-
JSON.stringify(
|
|
274
|
-
data.filter(function (value, index, arr) {
|
|
275
|
-
return index > 0
|
|
276
|
-
})
|
|
277
|
-
) +
|
|
278
|
-
';' +
|
|
279
|
-
newLine
|
|
269
|
+
// var script using existing cache
|
|
270
|
+
//script += `var ${elemData}Data = ${JSON.stringify(data)}${Util.newLine}`;
|
|
280
271
|
script += `$("body").on("change", "${elem}", function(){
|
|
281
272
|
var current = $("${elem}").typeahead("getActive");
|
|
282
273
|
if(current){
|