Commit 3c9594531301419363945f342e806a91573412d9
Exists in
master
and in
2 other branches
Merge branch 'master' of github.com:fga-unb/comigrar-theme
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
footer.rhtml
@@ -14,6 +14,18 @@ | @@ -14,6 +14,18 @@ | ||
14 | </div> | 14 | </div> |
15 | <script type="text/javascript" src="http://barra.brasil.gov.br/barra.js?cor=verde"></script> | 15 | <script type="text/javascript" src="http://barra.brasil.gov.br/barra.js?cor=verde"></script> |
16 | <script type="text/javascript"> | 16 | <script type="text/javascript"> |
17 | + var update_droppables_list = []; | ||
18 | + | ||
19 | + function updateDroppables() { | ||
20 | + for(var i = 0; i < update_droppables_list.length; i++) { | ||
21 | + eval(update_droppables_list[i]); | ||
22 | + } | ||
23 | + | ||
24 | + window.setTimeout(function(){ | ||
25 | + updateDroppables(); | ||
26 | + }, 1000); | ||
27 | + } | ||
28 | + | ||
17 | // Script that include the video-block on Droppables | 29 | // Script that include the video-block on Droppables |
18 | function addVideoToDroppables() { | 30 | function addVideoToDroppables() { |
19 | var script_search = jQuery(".blocks script"); // get all script tags | 31 | var script_search = jQuery(".blocks script"); // get all script tags |
@@ -34,8 +46,11 @@ | @@ -34,8 +46,11 @@ | ||
34 | new_code = before + after; | 46 | new_code = before + after; |
35 | 47 | ||
36 | eval(new_code); // re-execute the function | 48 | eval(new_code); // re-execute the function |
49 | + update_droppables_list.push(new_code); | ||
37 | } | 50 | } |
38 | } | 51 | } |
52 | + | ||
53 | + updateDroppables(); | ||
39 | } | 54 | } |
40 | 55 | ||
41 | 56 |