Selaa lähdekoodia

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

master
The Dod 22 tuntia sitten
vanhempi
commit
9d1fee1f6e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      templates/index.html

+ 1
- 1
templates/index.html Näytä tiedosto

@@ -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…
Peruuta
Tallenna