2013-06-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: fixed the reload the widget autocomplete when select a item from the list instead from writing all name. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8282 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e4b533f2a0
commit
9e554db5c2
|
@ -1,3 +1,8 @@
|
||||||
|
2013-06-10 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_ui.php: fixed the reload the widget autocomplete
|
||||||
|
when select a item from the list instead from writing all name.
|
||||||
|
|
||||||
2013-06-10 Miguel de Dios <miguel.dedios@artica.es>
|
2013-06-10 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_html.php, include/functions_reporting.php,
|
* include/functions_html.php, include/functions_reporting.php,
|
||||||
|
|
|
@ -2867,6 +2867,7 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
' . $javascript_function_action_into_source_js_call . '
|
' . $javascript_function_action_into_source_js_call . '
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==== CACHE CODE ==================================
|
||||||
//Check the cache
|
//Check the cache
|
||||||
var found = false;
|
var found = false;
|
||||||
if (term in cache_' . $input_name . ') {
|
if (term in cache_' . $input_name . ') {
|
||||||
|
@ -2897,16 +2898,22 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (found)
|
if (found) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
//==================================================
|
||||||
|
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
//Set icon
|
//Set icon
|
||||||
$("#' . $input_id . '")
|
$("#' . $input_id . '")
|
||||||
.css("background","url(\"' . $icon_image . '\") right center no-repeat");
|
.css("background","url(\"' . $icon_image . '\") right center no-repeat");
|
||||||
|
|
||||||
|
select_item_click = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2929,6 +2936,8 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
.css("background",
|
.css("background",
|
||||||
"url(\"' . $icon_image . '\") right center no-repeat");
|
"url(\"' . $icon_image . '\") right center no-repeat");
|
||||||
|
|
||||||
|
select_item_click = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2936,6 +2945,8 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
//---END source-----------------------------------------
|
//---END source-----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
select: function( event, ui ) {
|
select: function( event, ui ) {
|
||||||
var agent_name = ui.item.name;
|
var agent_name = ui.item.name;
|
||||||
var agent_id = ui.item.id;
|
var agent_id = ui.item.id;
|
||||||
|
@ -2988,6 +2999,8 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
' . $javascript_function_action_after_select_js_call . '
|
' . $javascript_function_action_after_select_js_call . '
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select_item_click = 1;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -3100,6 +3113,11 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (select_item_click) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Set loading
|
//Set loading
|
||||||
$("#' . $input_id . '")
|
$("#' . $input_id . '")
|
||||||
.css("background",
|
.css("background",
|
||||||
|
@ -3233,6 +3251,8 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
/* <![CDATA[ */';
|
/* <![CDATA[ */';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$html .= 'var select_item_click = 0;' . "\n";
|
||||||
|
|
||||||
$html .= $javascript_function_change;
|
$html .= $javascript_function_change;
|
||||||
if ($javascript_is_function_select) {
|
if ($javascript_is_function_select) {
|
||||||
$html .= $javascript_code_function_select;
|
$html .= $javascript_code_function_select;
|
||||||
|
|
Loading…
Reference in New Issue