Fixes in formutils and lsit

This commit is contained in:
absurdo 2024-03-03 02:05:34 +01:00
parent 51874b339a
commit 353a80d843
2 changed files with 20 additions and 1 deletions

View file

@ -366,7 +366,7 @@ $=jQuery;
if(options.hasOwnProperty("pre_callback")) {
pre_callback(this);
options.pre_callback(this);
}

View file

@ -20,6 +20,25 @@ function fillForm(name_form, value) {
}
function fillSelect(name_form, value) {
var z=0;
$('#'+name_form+'_form option').each( function () {
//console.log('option '+$(this).val());
if($(this).val()==value) {
$('#'+name_form+'_form option:eq('+z+')').prop('selected', true);
}
z++;
});
}
function resetForm(form) {
//console.log(form);