show a discreet error when there is an ajax-error on the beamer
This commit is contained in:
parent
4639e77549
commit
a7fc2c2b88
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user