This commit is contained in:
MatteoPistorello 2022-03-22 17:14:26 +01:00
commit 1c596a4cf3
2 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,7 @@ $(document).ready(function(){
id_plugin: "'.$id_plugin.'",
}).then(function(response) {
// Selezione automatica nuovo valore per il select
var select = input($("#'.get('select').'"));
var select = input("#'.get('select').'");
if (select) {
select.getElement().selectSetNew(response.id, response.text, response.data);
//select.change();

View File

@ -38,6 +38,11 @@ function input(name) {
element = $(name);
}
// Selezione tramite ID
else if (name.substr(0,1) == "#") {
element = $(name).last();
}
// Selezione per nome
else {
element = $("[name='" + name + "']").last();