Archived
24 lines
579 B
JavaScript
24 lines
579 B
JavaScript
|
|
/*$( document ).ajaxStart( function() {
|
|
$( '#spinner' ).show();
|
|
}).ajaxStop( function() {
|
|
$( '#spinner' ).hide();
|
|
});
|
|
*/
|
|
/* Get the service status of the user */
|
|
$(function() {
|
|
var img_check = ' <img src="/static/check.png" alt="OK" />';
|
|
|
|
$.getJSON("/userstatus/client/?format=json", function(data) {
|
|
if(data.active) {
|
|
$("#client_status").html(img_check);
|
|
}
|
|
});
|
|
$.getJSON('/userstatus/wireless/?format=json', function(data) {
|
|
if(data.active) {
|
|
$("#wireless_status").html(img_check);
|
|
}
|
|
});
|
|
|
|
});
|