small changes to modal box

This commit is contained in:
Wouter van Wijk 2013-01-02 01:15:40 +01:00
parent b453713a0e
commit 0a0b2ef81a
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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();
});

View File

@ -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 &raquo;</a></p>
*/
if (resultArr == '') { return; }
playlists = resultArr;
tmp = '';
for (var i = 0; i < playlists.length; i++) {