Explorar el Código

Don't start marquee while hidden (d'Oh)

master
The Dod hace 22 horas
padre
commit
9d1fee1f6e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      templates/index.html

+ 1
- 1
templates/index.html Ver fichero

@@ -35,13 +35,13 @@
35 35
   function setTicker(ticker_text) {
36 36
     $("#the-ticker").marquee("destroy");
37 37
     if (ticker_text) {
38
+      $("#ticker-wrapper").show();
38 39
       $("#ticker-text").text(ticker_text);
39 40
       $("#the-ticker").marquee({
40 41
         "direction": "right",
41 42
         "duplicated": true,
42 43
         "speed": 115
43 44
       });
44
-      $("#ticker-wrapper").show();
45 45
     } else {
46 46
         $("#ticker-wrapper").hide();
47 47
     }

Loading…
Cancelar
Guardar