select fix 2

This commit is contained in:
2026-07-27 09:51:51 +02:00
parent 53eb569539
commit 89c3712a39
+1 -1
View File
@@ -122,7 +122,7 @@ ActiveAdmin.register_page "Files" do
text_node " "
abs_path = "/softwares/#{entry[:path]}"
a "Select", href: "#", class: "fm-btn fm-btn-select",
onclick: "window.parent.filePickerSelect('#{j picker_field}','#{j abs_path}');return false;"
onclick: "var inp=window.parent.document.getElementById('#{j picker_field}');if(inp){inp.value='#{j abs_path}';}var ov=window.parent.document.querySelector('.fm-modal-overlay');if(ov){ov.remove();window.parent.document.body.style.overflow='';}return false;"
end
# Hidden rename form