From 0a0b2ef81afe35f8c0689a82c987f5288e4bc072 Mon Sep 17 00:00:00 2001 From: Wouter van Wijk Date: Wed, 2 Jan 2013 01:15:40 +0100 Subject: [PATCH] small changes to modal box --- README.rst | 2 ++ js/gui.js | 4 +++- js/ws.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 34fecff..0b92c38 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/js/gui.js b/js/gui.js index ff2eab8..706b674 100755 --- a/js/gui.js +++ b/js/gui.js @@ -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(); }); diff --git a/js/ws.js b/js/ws.js index 6f14d43..b1d9d2c 100755 --- a/js/ws.js +++ b/js/ws.js @@ -74,6 +74,7 @@ function handleGetplaylists(resultArr) { /*