1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Miglioramento organizzazione JS

This commit is contained in:
Thomas Zilio
2019-07-26 17:40:52 +02:00
parent 4d6b15a217
commit dea2d1dbdc
55 changed files with 1805 additions and 1994 deletions

View File

@@ -250,17 +250,10 @@ if (empty($record) || !$has_access) {
<script>
$(document).ready(function(){
cleanup_inputs();
var form = $("#module-edit").find("form").first();
// Rimozione select inizializzati
$("#custom_fields_bottom-edit").find("select").each(function () {
$(this).select2().select2("destroy");
});
$("#custom_fields_bottom-edit").find("select").each(function () {
$(this).select2().select2("destroy");
});
// Campi a inizio form
form.prepend($("#custom_fields_top-edit").html());
@@ -274,11 +267,9 @@ if (empty($record) || !$has_access) {
if (!last.length) {
last = form.find(".row").eq(-2);
}
last.after($("#custom_fields_bottom-edit").html());
start_superselect();
start_datepickers();
last.after($("#custom_fields_bottom-edit").html());
restart_inputs();
});
</script>';