warning message for older browsers, fixed playlist bug
This commit is contained in:
parent
e082628cf6
commit
0eaba322f0
@ -40,8 +40,8 @@
|
||||
|
||||
<div id="coverpopup" data-role="popup" data-theme="c">
|
||||
<a href="#" data-rel="back" data-role="button" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
|
||||
<h3 id="coverpopupalbumname">aaa</h3>
|
||||
<h4 id="coverpopupartist">bbb</h4>
|
||||
<h3 id="coverpopupalbumname"></h3>
|
||||
<h4 id="coverpopupartist"></h4>
|
||||
<img id="coverpopupimage" src="" />
|
||||
</div>
|
||||
|
||||
|
||||
@ -247,7 +247,13 @@ function initSocketevents() {
|
||||
**********************/
|
||||
$(document).ready(function() {
|
||||
//$(document).bind("pageinit", function() {
|
||||
|
||||
//check for websockets
|
||||
if(!window.WebSocket) {
|
||||
switchContent("playlists");
|
||||
$('#playlistspane').html('<h2>Old Browser</h2><p>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.</p>');
|
||||
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);
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user