order alphabetically modules
This commit is contained in:
parent
421056e959
commit
254225b8ac
|
@ -4778,9 +4778,7 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
inputs.push ("force_local_modules=1");
|
||||
}
|
||||
|
||||
if ('.((int) $get_order_json).') {
|
||||
inputs.push ("get_order_json=1");
|
||||
}
|
||||
inputs.push ("get_order_json=1");
|
||||
|
||||
if ('.((int) $get_only_string_modules).') {
|
||||
inputs.push ("get_only_string_modules=1");
|
||||
|
@ -4815,11 +4813,13 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
url: action="'.$javascript_ajax_page.'",
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
data.sort(function(a, b) {
|
||||
var textA = a.nombre.toUpperCase();
|
||||
var textB = b.nombre.toUpperCase();
|
||||
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
|
||||
});
|
||||
if (Array.isArray(data) === true) {
|
||||
data.sort(function(a, b) {
|
||||
var textA = a.nombre.toUpperCase();
|
||||
var textB = b.nombre.toUpperCase();
|
||||
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
|
||||
});
|
||||
}
|
||||
|
||||
if ('.((int) $add_none_module).') {
|
||||
$("#'.$selectbox_id.'")
|
||||
|
|
Loading…
Reference in New Issue