zet-lib 1.0.70 → 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 +4 -0
- 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 = ${JSON.stringify(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
|
@@ -2568,6 +2568,10 @@ zRoute.moduleLib = (req, res, MYMODEL, relations, zForms = '', data = {}) => {
|
|
|
2568
2568
|
scriptTemp += `<script>var ${key}Object = ${JSON.stringify(relObject)};</script>${Util.newLine}`
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
|
+
} else if (MYMODEL.widgets[keys].name == 'typeahead') {
|
|
2572
|
+
//employee_payroll_salary___employee_id_1
|
|
2573
|
+
let name = `${MYMODEL.widgets[keys].table}_${MYMODEL.table}___${keys}_${res.locals.companyId}`
|
|
2574
|
+
scriptTemp += `<script>const ${keys}TypeaheadData = ${JSON.stringify(myCache.get(name))}</script>`
|
|
2571
2575
|
}
|
|
2572
2576
|
}
|
|
2573
2577
|
|