From 030ff09ec0a7ed76b71ac467f9c9f1ffb5f6c006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Ko=CC=88cher?= Date: Fri, 27 Apr 2012 07:59:23 +0200 Subject: [PATCH] #97: (Aftermath) Quick cross-browser fix: remove the spin-buttons and use input type=number. If your browser is HTML5 it should show a spin box, otherwise the fallback (type=text) will work equally well. --- .../static/javascript/projector-control.js | 14 -------------- .../projector/templates/projector/control.html | 8 +------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/openslides/projector/static/javascript/projector-control.js b/openslides/projector/static/javascript/projector-control.js index 36a6eb255..1dac0be48 100644 --- a/openslides/projector/static/javascript/projector-control.js +++ b/openslides/projector/static/javascript/projector-control.js @@ -60,20 +60,6 @@ $(function() { }); }); - $('.projector_countdown_spindown').click(function(event) { - event.preventDefault(); - var count = parseInt($( "#countdown_time" ).val()); - - $( "#countdown_time" ).val( ((count - 1 >= 0) ? count - 1 : count)); - }); - - $('.projector_countdown_spinup').click(function(event) { - event.preventDefault(); - var count = parseInt($( "#countdown_time" ).val()); - - $( "#countdown_time" ).val(count + 1); - }); - $('.countdown_visible_link').click(function(event) { event.preventDefault(); var link = $(this); diff --git a/openslides/projector/templates/projector/control.html b/openslides/projector/templates/projector/control.html index 809078ceb..f997d9ce2 100644 --- a/openslides/projector/templates/projector/control.html +++ b/openslides/projector/templates/projector/control.html @@ -144,13 +144,7 @@ {% if overlay.def_name == "Countdown" %} | - - - - - - - + {% trans "sec" %}