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

@ -10,10 +10,9 @@ function presentation_reload() {
document.title = data.title; document.title = data.title;
$('#currentTime').html(data.time); $('#currentTime').html(data.time);
setTimeout("presentation_reload()", 500); setTimeout("presentation_reload()", 500);
}, },
error: function () { 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; background: url(../images/icons/clock.png) no-repeat scroll 0px 4px;
} }
#currentTime.ajax_error {
border-bottom: 4px solid red;
}
/*** CONTENT ***/ /*** CONTENT ***/
#content { #content {
position:absolute; position:absolute;