From a7fc2c2b889f03c506971c46168a48a812d53bc8 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 3 Sep 2011 18:50:47 +0200 Subject: [PATCH] show a discreet error when there is an ajax-error on the beamer --- openslides/static/javascript/beamer.js | 5 ++--- openslides/static/styles/beamer.css | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/openslides/static/javascript/beamer.js b/openslides/static/javascript/beamer.js index 1d4953c25..ea84d3d3b 100644 --- a/openslides/static/javascript/beamer.js +++ b/openslides/static/javascript/beamer.js @@ -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'); } }); } diff --git a/openslides/static/styles/beamer.css b/openslides/static/styles/beamer.css index 7182ae341..8f4c0018b 100644 --- a/openslides/static/styles/beamer.css +++ b/openslides/static/styles/beamer.css @@ -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;