order alphabetically modules

This commit is contained in:
alejandro-campos 2020-03-17 14:23:52 +01:00
parent 421056e959
commit 254225b8ac
1 changed files with 8 additions and 8 deletions

View File

@ -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");
}
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) {
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.'")