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">
|
<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>
|
<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>
|
<h3 id="coverpopupalbumname"></h3>
|
||||||
<h4 id="coverpopupartist">bbb</h4>
|
<h4 id="coverpopupartist"></h4>
|
||||||
<img id="coverpopupimage" src="" />
|
<img id="coverpopupimage" src="" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -247,6 +247,12 @@ function initSocketevents() {
|
|||||||
**********************/
|
**********************/
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
//$(document).bind("pageinit", 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();
|
$(window).hashchange();
|
||||||
|
|
||||||
@ -265,8 +271,8 @@ $(document).ready(function() {
|
|||||||
initgui = false;
|
initgui = false;
|
||||||
window.onhashchange = locationHashChanged;
|
window.onhashchange = locationHashChanged;
|
||||||
// Log all events
|
// Log all events
|
||||||
mopidy.on(function() {
|
//mopidy.on(function() {
|
||||||
});
|
//});
|
||||||
|
|
||||||
//update gui status every x seconds from mopdidy
|
//update gui status every x seconds from mopdidy
|
||||||
setInterval(updateTimer, STATUS_TIMER);
|
setInterval(updateTimer, STATUS_TIMER);
|
||||||
|
|||||||
@ -117,7 +117,7 @@ function showTracklist(uri) {
|
|||||||
var pl = getPlaylistFromUri(uri);
|
var pl = getPlaylistFromUri(uri);
|
||||||
//load from cache
|
//load from cache
|
||||||
if (pl) {
|
if (pl) {
|
||||||
playlisttotable(pl.tracks, PLAYLIST_TABLE, uri);
|
resultsToTables(pl.tracks, PLAYLIST_TABLE, uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#playlistslist li a').each(function() {
|
$('#playlistslist li a').each(function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user