Notifiche - Tutti - non letti

This commit is contained in:
Paolo Arena
2022-07-21 00:21:03 +02:00
parent cbd65ccdbe
commit e9ce597027
10 changed files with 235 additions and 177 deletions

View File

@@ -576,6 +576,7 @@ module.exports = {
'sender',
'dest',
'descr',
'link',
'datenotif',
'read',
'deleted',
@@ -2934,4 +2935,22 @@ module.exports = {
return mystr;
},
updateQueryStringParameter(uri, key, value) {
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
var separator = uri.indexOf('?') !== -1 ? "&" : "?";
if (uri.match(re)) {
return uri.replace(re, '$1' + key + "=" + value + '$2');
} else {
return uri + separator + key + "=" + value;
}
},
isArray(val) {
return Array.isArray(val)
},
getContentByTypeMsg (typemsg) {
},
};