Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/aps/xcrud/plugins/select2-develop/docs/plugins/simplesearch/js/ drwxr-xr-x |
Viewing file: simplesearch.js (1.06 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | ((function(){ var findAncestor = function(el, selector) { while ((el = el.parentElement) && !((el.matches || el.matchesSelector).call(el, selector))) {} return el; }; var fields = document.querySelectorAll('input[name="searchfield"][data-search-input]'); fields.forEach(function(field) { var form = findAncestor(field, 'form[data-simplesearch-form]'), min = field.getAttribute('min') || false, location = field.getAttribute('data-search-input'), separator = field.getAttribute('data-search-separator'); if (min) { var invalid = field.getAttribute('data-search-invalid'); field.addEventListener('keydown', function() { field.setCustomValidity(field.value.length >= min ? '' : invalid); }); } form.addEventListener('submit', function(event) { event.preventDefault(); if (field.checkValidity()) { window.location.href = location + separator + field.value; } }); }); })()); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0061 ]-- |