mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Change ajax call method get to post for autorefresh and use new timecount param - #868
This commit is contained in:
parent
291ae3a192
commit
38464bf615
@ -245,10 +245,11 @@ $ignored_params['refr'] = '';
|
|||||||
//cb();
|
//cb();
|
||||||
url = js_html_entity_decode( href ) + duration;
|
url = js_html_entity_decode( href ) + duration;
|
||||||
//$(document).attr ("location", url);
|
//$(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);
|
$('#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) {
|
$('select#refr').change(function (event) {
|
||||||
refr = Number.parseInt(event.target.value, 10);
|
refr = Number.parseInt(event.target.value, 10);
|
||||||
|
new_count = event.target.value;
|
||||||
startCountDown(refr, false);
|
startCountDown(refr, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user