]> git.parisson.com Git - teleforma.git/commitdiff
fix js fast loop
authoryomguy <yomguy@parisson.com>
Fri, 22 Jun 2012 13:51:16 +0000 (15:51 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 22 Jun 2012 13:51:16 +0000 (15:51 +0200)
teleforma/templates/teleforma/inc/conference_list.html

index 16337bcd7906030f77e989be685699c38ab56250..a2281dfa615edf13be048c50002b7ad2f8022054 100644 (file)
                 {% if stream.streaming %}
                 <img src="{{ STATIC_URL }}teleforma/images/network-wireless.png" style="vertical-align:middle" title="streaming" />
                 <img src="{{ STATIC_URL }}telemeta/images/media-record.png" style="vertical-align:middle" title="recording" />
-                {% endif %}
+                <script type="text/javascript">
+                    function update_snapshots_callback_{{ stream.course.code }}() {
+                        var d = 1000;
+                        var refresh = function(){
+                        $("#snapshot-{{ stream.course.code }}").attr("src","{{ stream.snapshot_url }}");
+                        };
+                        setInterval(refresh,d);
+                    };
+                    update_snapshots_callback_{{ stream.course.code }}();
+                    </script>
+              {% endif %}
             </td>
             </tr>
-         <script type="text/javascript">
-            function update_snapshots_callback_{{ stream.course.code }}() {
-                var d = 1;
-                var refresh = function(){
-                $("#snapshot-{{ stream.course.code }}").attr("src","{{ stream.snapshot_url }}");
-                };
-            refresh();
-            setInterval(refresh,d);
-            };
-            update_snapshots_callback_{{ stream.course.code }}();
-            </script>
+
         {% endfor %}
     </tbody>
     </table>