Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/Modules/FormBuilder/Resources/assets/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
jQuery(function () {
if (
window._form_builder_content &&
Array.isArray(window._form_builder_content)
) {
window._form_builder_content.map((item) => {
if (
item.type == "file" &&
item.hasOwnProperty("value") &&
item.required == true
) {
item.required = false;
}
return item;
});
}
var fbRenderOptions = {
container: false,
dataType: "json",
formData: window._form_builder_content
? window._form_builder_content
: "",
render: true,
};
try {
$("#fb-render").formRender(fbRenderOptions);
} catch (error) {
// handle exception
} finally {
$("input[type=file]").each(function () {
const title = $(this).data("title");
const url = $(this).data("url");
if (url && url.length > 0) {
$(this)
.parent()
.append(
`<div class="d-block mt-2">${jsLang(
"File"
)}: <a href="${url}" target="__blank" class="d-inline mt-2"><i class="feather icon-file-text mr-1"></i>${title}</a></div>`
);
}
});
}
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |