small changes to modal box
This commit is contained in:
parent
b453713a0e
commit
0a0b2ef81a
@ -7,6 +7,8 @@ Mopidy is a music server which can play music from `Spotify
|
||||
|
||||
This is a responsive html/js/css client for Mopidy. Responsive, so it works on desktop and mobile browsers.
|
||||
|
||||
Note: this is under heavy development!
|
||||
|
||||
Installation
|
||||
|
||||
To install Mopidy, check out
|
||||
|
||||
@ -314,12 +314,13 @@ function updateStatusOfAll() {
|
||||
|
||||
function initSocketevents() {
|
||||
mopidy.on("state:online", function () {
|
||||
$(window).hashchange();
|
||||
$("#offlinemodal").modal('hide');
|
||||
$("#loadingmodal").modal('show');
|
||||
getCurrentPlaylist();
|
||||
updateStatusOfAll();
|
||||
getPlaylists();
|
||||
$(window).hashchange();
|
||||
$("#loadingmodal").modal('show');
|
||||
});
|
||||
|
||||
mopidy.on("state:offline", function () {
|
||||
@ -341,6 +342,7 @@ function initSocketevents() {
|
||||
});
|
||||
|
||||
mopidy.on("event:playlistsLoaded", function (data) {
|
||||
$("#loadingmodal").modal('show');
|
||||
getPlaylists();
|
||||
});
|
||||
|
||||
|
||||
1
js/ws.js
1
js/ws.js
@ -74,6 +74,7 @@ function handleGetplaylists(resultArr) {
|
||||
/*<p><ul><li>Donec id elit non mi porta</li><li>Gravida at eget metus. Fusce dapibus.</li><li>Tellus ac cursus commodo</li></p>
|
||||
<p><a class="btn" href="#">More »</a></p>
|
||||
*/
|
||||
if (resultArr == '') { return; }
|
||||
playlists = resultArr;
|
||||
tmp = '';
|
||||
for (var i = 0; i < playlists.length; i++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user