mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-25 15:22:24 +01:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
1c596a4cf3
2
add.php
2
add.php
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user