From c132f9b5df5cac44e19d945862b72e6d9080b744 Mon Sep 17 00:00:00 2001 From: jcass Date: Mon, 22 Feb 2016 09:37:47 +0200 Subject: [PATCH] fix:Replace Javascript dialogs and buttons with jQuery Mobile equivalents. Use 'm3u' format for saving playlists. Invalidate the playlist cache on refresh or external changes. Replace links with buttons and text with icons. Fixes #113. Fixes #173. Fixes #177. --- README.rst | 3 + .../static/css/webclient.css | 4 ++ mopidy_musicbox_webclient/static/index.html | 68 +++++++++++++++--- .../static/js/controls.js | 72 +++++++++++++------ mopidy_musicbox_webclient/static/js/gui.js | 14 ++++ 5 files changed, 131 insertions(+), 30 deletions(-) diff --git a/README.rst b/README.rst index 9638811..57d86aa 100644 --- a/README.rst +++ b/README.rst @@ -79,6 +79,9 @@ v2.2.0 (UNRELEASED) - No longer interferes with changes to Mopidy's volume levels that are triggered externally. (Fixes: `#162 `_). - Volume slider now works with Mopidy-ALSAMixer again. (Fixes: `#168 `_). - Now falls back to track artist if album artist is not available for rendering cover art. (Fixes: `#128 `_). +- Replace Javascript prompt with jQuery Mobile equivalent. (Fixes: `#113 `_). +- Fix playlist refresh button. (Fixes: `#173 `_). +- Update save queue functionality to use 'm3u' format. (Fixes: `#177 `_). v2.1.1 (2016-02-04) ------------------- diff --git a/mopidy_musicbox_webclient/static/css/webclient.css b/mopidy_musicbox_webclient/static/css/webclient.css index dc09c4e..68ece16 100644 --- a/mopidy_musicbox_webclient/static/css/webclient.css +++ b/mopidy_musicbox_webclient/static/css/webclient.css @@ -378,6 +378,10 @@ border: 1px solid #aaa; } +.popupDialog { + padding: 10px; +} + /*dont hide clear buttons in text input */ .ui-input-clear-hidden { display: block !important; diff --git a/mopidy_musicbox_webclient/static/index.html b/mopidy_musicbox_webclient/static/index.html index d492084..22a9158 100644 --- a/mopidy_musicbox_webclient/static/index.html +++ b/mopidy_musicbox_webclient/static/index.html @@ -207,6 +207,37 @@ +
+
+

Save current queue to a playlist. + +

+ + +
+
+
+ + + +
+
+

Overwrite existing playlist with same name? +

+ + +
+
+