Merge branch '868-Consola-visual-a-pantalla-completa-no-hace-autorefresco' into 'develop'
Change ajax call method get to post for autorefresh and use new timecount param - #868 See merge request !555
This commit is contained in:
commit
614fbebded
|
@ -245,11 +245,12 @@ $ignored_params['refr'] = '';
|
|||
//cb();
|
||||
url = js_html_entity_decode( href ) + duration;
|
||||
//$(document).attr ("location", url);
|
||||
$.get(window.location.href.replace("render_view","pure_ajax"), function(respuestaSolicitud){
|
||||
$.post(window.location.href.replace("refr=300","refr="+new_count), function(respuestaSolicitud){
|
||||
$('#background_<?php echo $id_layout; ?>').html(respuestaSolicitud);
|
||||
startCountDown(refr, false);
|
||||
});
|
||||
}
|
||||
$("#main_pure").css('background-color','<?php echo $layout['background_color']; ?>');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -260,6 +261,7 @@ $ignored_params['refr'] = '';
|
|||
|
||||
$('select#refr').change(function (event) {
|
||||
refr = Number.parseInt(event.target.value, 10);
|
||||
new_count = event.target.value;
|
||||
startCountDown(refr, false);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue