Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/list.js/src/ drwxrwxr-x | |
| Viewing file: Select action/file-type: module.exports = function (list) {
return function (initValues, element, notCreate) {
var item = this
this._values = {}
this.found = false // Show if list.searched == true and this.found == true
this.filtered = false // Show if list.filtered == true and this.filtered == true
var init = function (initValues, element, notCreate) {
if (element === undefined) {
if (notCreate) {
item.values(initValues, notCreate)
} else {
item.values(initValues)
}
} else {
item.elm = element
var values = list.templater.get(item, initValues)
item.values(values)
}
}
this.values = function (newValues, notCreate) {
if (newValues !== undefined) {
for (var name in newValues) {
item._values[name] = newValues[name]
}
if (notCreate !== true) {
list.templater.set(item, item.values())
}
} else {
return item._values
}
}
this.show = function () {
list.templater.show(item)
}
this.hide = function () {
list.templater.hide(item)
}
this.matching = function () {
return (
(list.filtered && list.searched && item.found && item.filtered) ||
(list.filtered && !list.searched && item.filtered) ||
(!list.filtered && list.searched && item.found) ||
(!list.filtered && !list.searched)
)
}
this.visible = function () {
return item.elm && item.elm.parentNode == list.list ? true : false
}
init(initValues, element, notCreate)
}
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]-- |