zet-lib 1.0.96 → 1.0.98

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 CHANGED
@@ -269,7 +269,7 @@ m.typeahead = (req, res, elem, data) => {
269
269
  script += `$("body").on("click", "${element}Clear", function(){
270
270
  $("${elem}").val("");
271
271
  $("${element}").val("");
272
- $("${elem}").change();
272
+ $("${element}").change();
273
273
  });${Util.newLine}`
274
274
  script += `$("${elem}").typeahead({highlight: true,source:${elemData}Data, items: 50, displayText: function (item) {
275
275
  return item.zname.toString();
package/lib/zRoute.js CHANGED
@@ -235,7 +235,15 @@ zRoute.post = (req, res, MYMODEL, routeName, body) => {
235
235
  }
236
236
  }
237
237
  }
238
- post[routeName][key] = JSON.stringify(postTableData)
238
+ if (Array.isArray(postTableData)) {
239
+ post[routeName][key] = JSON.stringify(postTableData)
240
+ } else {
241
+ let myw = []
242
+ for (let kkk in postTableData) {
243
+ myw.push(postTableData[kkk])
244
+ }
245
+ post[routeName][key] = JSON.stringify(myw)
246
+ }
239
247
  break
240
248
 
241
249
  case 'multi_line_editor':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"