![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Xtento/StockImport/view/adminhtml/web/js/ |
window.xtSaveHiddenData = function(mapperId, rowId, field, value, empty) { if (typeof ace !== 'undefined') { value = editor.getSession().getValue(); } if (empty) { value = ""; } inputName = mapperId + '[' + rowId + '][' + field + ']'; if ($(inputName)) { $(inputName).value = value; } else { $(mapperId + '_additional_config').insert({'after': '<input type="hidden" id="' + inputName + '" name="' + inputName + '" value="' + quoteAttribute(value) + '"/>'}); } Windows.closeAll(); }; function quoteAttribute(s, preserveCR) { preserveCR = preserveCR ? ' ' : '\n'; return ('' + s)/* Forces the conversion to string. */ .replace(/&/g, '&')/* This MUST be the 1st replacement. */ .replace(/'/g, ''')/* The 4 other predefined entities, required. */ .replace(/"/g, '"') .replace(/</g, '<') .replace(/>/g, '>') /* You may add other replacements here for HTML only (but it's not necessary). Or for XML, only if the named entities are defined in its DTD. */ .replace(/\r\n/g, preserveCR)/* Must be before the next replacement. */ .replace(/[\r\n]/g, preserveCR); }