fixed minor errors in WUX

This commit is contained in:
daniel 2017-08-30 16:09:11 +02:00
parent b078d48918
commit fe2a2a36e8
3 changed files with 32 additions and 2 deletions

View File

@ -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 = [];

View File

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

View File

@ -4283,4 +4283,9 @@ div#footer_help{
.wux_transaction_graphs_pie{
width: 33%;
float: left;
}
.pagination_show_more{
text-align: center;
margin-top: 10px;
}