Fixes in formutils and lsit
This commit is contained in:
parent
51874b339a
commit
353a80d843
2 changed files with 20 additions and 1 deletions
|
|
@ -366,7 +366,7 @@ $=jQuery;
|
||||||
|
|
||||||
if(options.hasOwnProperty("pre_callback")) {
|
if(options.hasOwnProperty("pre_callback")) {
|
||||||
|
|
||||||
pre_callback(this);
|
options.pre_callback(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
function resetForm(form) {
|
||||||
|
|
||||||
//console.log(form);
|
//console.log(form);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue