fixed minor errors in WUX
This commit is contained in:
parent
b078d48918
commit
fe2a2a36e8
|
@ -3041,7 +3041,6 @@ function ui_print_agent_autocomplete_input($parameters) {
|
|||
if ($from_ux_transaction != "") {
|
||||
$javascript_code_function_select = '
|
||||
function function_select_' . $input_name . '(agent_name) {
|
||||
console.log(agent_name);
|
||||
$("#' . $selectbox_id . '").empty();
|
||||
|
||||
var inputs = [];
|
||||
|
@ -3071,7 +3070,6 @@ function ui_print_agent_autocomplete_input($parameters) {
|
|||
elseif ($from_wux_transaction != "") {
|
||||
$javascript_code_function_select = '
|
||||
function function_select_' . $input_name . '(agent_name) {
|
||||
console.log(agent_name);
|
||||
$("#' . $selectbox_id . '").empty();
|
||||
|
||||
var inputs = [];
|
||||
|
|
|
@ -1193,4 +1193,31 @@ function htmlEncode(value){
|
|||
|
||||
function htmlDecode(value){
|
||||
return $('<div/>').html(value).text();
|
||||
}
|
||||
|
||||
function pagination_show_more(params, message){
|
||||
//value input hidden for save limit
|
||||
var value_offset = $('#hidden-offset').val();
|
||||
//For each execution offset + limit
|
||||
var offset = parseInt(value_offset) + params['limit'];
|
||||
//save new value innput hidden
|
||||
$('#hidden-offset').val(offset);
|
||||
//add array value offset
|
||||
params['offset'] = offset;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ajax.php",
|
||||
data: params,
|
||||
success: function(data) {
|
||||
if(data == ''){
|
||||
$('#container_error').empty();
|
||||
$('#container_error').append('<h4>'+ message +'</h4>');
|
||||
}
|
||||
else{
|
||||
$('#container_pag').append(data);
|
||||
}
|
||||
},
|
||||
datatype: "html"
|
||||
});
|
||||
}
|
|
@ -4283,4 +4283,9 @@ div#footer_help{
|
|||
.wux_transaction_graphs_pie{
|
||||
width: 33%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.pagination_show_more{
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
Loading…
Reference in New Issue