diff --git a/webclient/index.html b/webclient/index.html index e1715c7..20c3c22 100755 --- a/webclient/index.html +++ b/webclient/index.html @@ -40,8 +40,8 @@
diff --git a/webclient/js/gui.js b/webclient/js/gui.js index c7cbd77..1618351 100755 --- a/webclient/js/gui.js +++ b/webclient/js/gui.js @@ -247,7 +247,13 @@ function initSocketevents() { **********************/ $(document).ready(function() { //$(document).bind("pageinit", function() { - + //check for websockets + if(!window.WebSocket) { + switchContent("playlists"); + $('#playlistspane').html('Sorry. Your browser isn\'t modern enough for this webapp. Modern versions of Chrome, Firefox, Safari all will do. Maybe Opera and Internet Explorer 10 also work, but it\'s not tested.
'); + exit; + } + $(window).hashchange(); // Connect to server @@ -265,8 +271,8 @@ $(document).ready(function() { initgui = false; window.onhashchange = locationHashChanged; // Log all events - mopidy.on(function() { - }); + //mopidy.on(function() { + //}); //update gui status every x seconds from mopdidy setInterval(updateTimer, STATUS_TIMER); diff --git a/webclient/js/library.js b/webclient/js/library.js index 6ef6e89..ffa89c4 100644 --- a/webclient/js/library.js +++ b/webclient/js/library.js @@ -117,7 +117,7 @@ function showTracklist(uri) { var pl = getPlaylistFromUri(uri); //load from cache if (pl) { - playlisttotable(pl.tracks, PLAYLIST_TABLE, uri); + resultsToTables(pl.tracks, PLAYLIST_TABLE, uri); } $('#playlistslist li a').each(function() {