zet-lib 1.2.87 → 1.2.88

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
@@ -487,10 +487,14 @@ m.selectpicker = function (req, res, elem) {
487
487
 
488
488
  m.slugHTML = (req, res, content, at = 'end') => {
489
489
  if (content) {
490
+ let head = res.locals.moduleHead
491
+ let end = res.locals.moduleEnd
490
492
  if (at == 'end') {
491
- res.locals.moduleEnd = content
493
+ end += content
494
+ res.locals.moduleEnd = end
492
495
  } else {
493
- res.locals.moduleHead = content
496
+ head += content
497
+ res.locals.moduleHead = head
494
498
  }
495
499
  }
496
500
  }
package/lib/zRoute.js CHANGED
@@ -2596,9 +2596,9 @@ zRoute.viewFormsSync = async (req, res, MYMODEL, data = {}) => {
2596
2596
  </div>
2597
2597
 
2598
2598
  <div class="ps-lg-4 my-5 text-lg-start col-lg-3 mb-3 float-end divhistory"><button title="History" class="btn btn-success image-button btn-rounded dimens2x" style="position: fixed;bottom: 100px;right: -40px; transform: rotate(90deg);" data-bs-toggle="modal" data-bs-target="#modal-history"><img src="/assets/icons/history.svg" class="icons-bg-white" alt="Delete"> <span>History Data</span></button></div>
2599
- `
2600
2599
 
2601
- moduleLib.slugHTML(req, res, contentModal)
2600
+ `
2601
+ moduleLib.slugHTML(req, res, contentModal)
2602
2602
  let contentScript = `$(function(){
2603
2603
  ajaxPost("/zhistory-data",{id:${data.id},table:"${MYMODEL.table}"},(data) => {$("#modal-body-history").html(data); if(data == "") {$(".divhistory").remove()}});
2604
2604
  $("#${MYMODEL.table}-delete").on("click", (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.87",
3
+ "version": "1.2.88",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"