zet-lib 1.0.71 → 1.0.72
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 +0 -1
- package/lib/zRoute.js +1 -1
- package/package.json +1 -1
package/lib/moduleLib.js
CHANGED
|
@@ -267,7 +267,6 @@ m.typeahead = (req, res, elem, data) => {
|
|
|
267
267
|
let element = elem.replace('Typeahead', '')
|
|
268
268
|
|
|
269
269
|
// var script using existing cache
|
|
270
|
-
script += `var ${elemData}Data = [];${Util.newLine}`
|
|
271
270
|
script += `$("body").on("change", "${elem}", function(){
|
|
272
271
|
var current = $("${elem}").typeahead("getActive");
|
|
273
272
|
if(current){
|
package/lib/zRoute.js
CHANGED
|
@@ -2571,7 +2571,7 @@ zRoute.moduleLib = (req, res, MYMODEL, relations, zForms = '', data = {}) => {
|
|
|
2571
2571
|
} else if (MYMODEL.widgets[keys].name == 'typeahead') {
|
|
2572
2572
|
//employee_payroll_salary___employee_id_1
|
|
2573
2573
|
let name = `${MYMODEL.widgets[keys].table}_${MYMODEL.table}___${keys}_${res.locals.companyId}`
|
|
2574
|
-
scriptTemp += `<script
|
|
2574
|
+
scriptTemp += `<script>const ${keys}TypeaheadData = ${JSON.stringify(myCache.get(name))}</script>`
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
2577
|
|