]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix the VLC plugin-detection. The HTML embed element have to be layed in order for...
authorJohn Törnblom <john.tornblom@gmail.com>
Wed, 2 Feb 2011 18:53:33 +0000 (19:53 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Fri, 4 Feb 2011 15:01:49 +0000 (16:01 +0100)
src/webui/static/app/tvheadend.js

index 2cd955fa35497b90a3231e980361d938ac764d36..b0a7864712ad2eba14379e08300a5f43618bb4ea 100644 (file)
@@ -69,6 +69,8 @@ tvheadend.VLC = function(url) {
          chName = 'the stream';
       }
 
+      vlc.style.display = 'block';
+
       if(!vlc.playlist || vlc.playlist == 'undefined') {
          var innerHTML = '';
          innerHTML += '<p>You are missing a plugin for your browser.'
@@ -78,12 +80,11 @@ tvheadend.VLC = function(url) {
          innerHTML += '<p><a href="' + url + '">Direct URL</a></p>';
 
          missingPlugin.innerHTML = innerHTML;
+         vlc.style.display = 'none';
          missingPlugin.style.display = 'block';
          return;
       }
 
-      vlc.style.display = 'block';
-
       if(vlc.playlist && vlc.playlist.isPlaying) {
         vlc.playlist.stop();
       }