zet-lib 1.0.74 → 1.0.78
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/Mail.js +60 -61
- package/lib/Util.js +925 -945
- package/lib/zRoute.js +3 -3
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -1031,7 +1031,7 @@ zRoute.handleSession = async (req, user) => {
|
|
|
1031
1031
|
})
|
|
1032
1032
|
|
|
1033
1033
|
if (!userCompany.length) {
|
|
1034
|
-
req.session.user = {}
|
|
1034
|
+
//req.session.user = {}
|
|
1035
1035
|
} else {
|
|
1036
1036
|
const userCompanyObject = Util.arrayToObject(userCompany, 'company_id')
|
|
1037
1037
|
const role = await connection.result({
|
|
@@ -2943,11 +2943,11 @@ $("#body-${keys}>tr").each(function (index, tr) {
|
|
|
2943
2943
|
|
|
2944
2944
|
}); ${Util.newLine}};${Util.newLine}`
|
|
2945
2945
|
|
|
2946
|
-
|
|
2946
|
+
scriptForm += ` $('#add${keys}').on('click',function(){
|
|
2947
2947
|
append${keys}(append${keys}Max, (data) => $('#body-${keys}').append(data));
|
|
2948
2948
|
append${keys}Max++;
|
|
2949
2949
|
${keys}Handler();
|
|
2950
|
-
}); ${Util.newLine}
|
|
2950
|
+
}); ${Util.newLine}`
|
|
2951
2951
|
scriptForm += `function set${keys}value(index,myobj) {
|
|
2952
2952
|
for(var key in myobj){
|
|
2953
2953
|
if($(".${subname}_" + key).eq(index).attr("type") == "checkbox" && myobj[key] == 1){
|