This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
neuf-userinfo/static/js/status.js
T
2011-11-21 02:41:58 +01:00

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