show a discreet error when there is an ajax-error on the beamer

This commit is contained in:
Oskar Hahn 2011-09-03 18:50:47 +02:00
parent 4639e77549
commit a7fc2c2b88
2 changed files with 6 additions and 3 deletions

View File

@ -9,11 +9,10 @@ function presentation_reload() {
$('#content').html(data.content);
document.title = data.title;
$('#currentTime').html(data.time);
setTimeout("presentation_reload()",500);
setTimeout("presentation_reload()", 500);
},
error: function () {
alert("Ajax Error");
$('#currentTime').addClass('ajax_error');
}
});
}

View File

@ -57,6 +57,10 @@ body{
background: url(../images/icons/clock.png) no-repeat scroll 0px 4px;
}
#currentTime.ajax_error {
border-bottom: 4px solid red;
}
/*** CONTENT ***/
#content {
position:absolute;