From 728c58d165e2c9c5261f9e5260d4ec09f8596138 Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 12 Jul 2015 01:39:00 +0300 Subject: [PATCH 1/4] Fix Browse caption size --- mopidy_musicbox_webclient/static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy_musicbox_webclient/static/index.html b/mopidy_musicbox_webclient/static/index.html index 532e9a3..59cfea8 100644 --- a/mopidy_musicbox_webclient/static/index.html +++ b/mopidy_musicbox_webclient/static/index.html @@ -327,8 +327,8 @@
-

Browse

-

+

Browse

+
From 896ec8afde7f4c370891fb03f825dd7c6ee55b5b Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 12 Jul 2015 02:15:31 +0300 Subject: [PATCH 2/4] Add refresh button for playlists --- .../static/css/webclient.css | 1 - mopidy_musicbox_webclient/static/index.html | 15 +++++++++------ mopidy_musicbox_webclient/static/js/controls.js | 6 ++++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/mopidy_musicbox_webclient/static/css/webclient.css b/mopidy_musicbox_webclient/static/css/webclient.css index 507f791..6862608 100644 --- a/mopidy_musicbox_webclient/static/css/webclient.css +++ b/mopidy_musicbox_webclient/static/css/webclient.css @@ -417,7 +417,6 @@ #playlistspane { /* height: 90% !important;*/ margin: 0px !important; - padding: 2px !important; } a { diff --git a/mopidy_musicbox_webclient/static/index.html b/mopidy_musicbox_webclient/static/index.html index 59cfea8..d8fe27d 100644 --- a/mopidy_musicbox_webclient/static/index.html +++ b/mopidy_musicbox_webclient/static/index.html @@ -314,15 +314,18 @@ -
-
-
    -
    -
    +
    + +

    Playlists

    +
    +
    +
      +
      +
      -
      diff --git a/mopidy_musicbox_webclient/static/js/controls.js b/mopidy_musicbox_webclient/static/js/controls.js index e2c035d..354a3db 100644 --- a/mopidy_musicbox_webclient/static/js/controls.js +++ b/mopidy_musicbox_webclient/static/js/controls.js @@ -251,6 +251,12 @@ function saveQueue() { return false; } + +function refreshPlaylists() { + mopidy.playlists.refresh(); + return false; +} + /********************** * Buttons */ From 8502f648f1c899cf6fe24abfa8e22b7ae8a71bc5 Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 12 Jul 2015 02:24:42 +0300 Subject: [PATCH 3/4] Fix scroll offset on playlists load --- mopidy_musicbox_webclient/static/js/functionsvars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy_musicbox_webclient/static/js/functionsvars.js b/mopidy_musicbox_webclient/static/js/functionsvars.js index 87143ca..25b78c8 100644 --- a/mopidy_musicbox_webclient/static/js/functionsvars.js +++ b/mopidy_musicbox_webclient/static/js/functionsvars.js @@ -127,7 +127,7 @@ function scrollToTracklist() { playlistslistScroll.refresh(); } */ - var divtop = $("#playlisttracksdiv").offset().top - 50; + var divtop = $("#playlisttracksdiv").offset().top - 120; $('body,html').animate({ scrollTop: divtop }, 250); From a60c6c08e4ba10fb856198adff6f2f7e355b5866 Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 12 Jul 2015 02:26:52 +0300 Subject: [PATCH 4/4] Updated README --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 4a45093..b1e1088 100644 --- a/README.rst +++ b/README.rst @@ -60,6 +60,7 @@ v2.0.1 (UNRELEASED) - Fixed slow to start playing from a large tracklist of browsed tracks. - Added link to `Alarm Clock `_ (if present). - Added ability to save Queue as local Playlist. +- Added ability to manually initiate refresh of Playlists. v2.0.0 (26-3-2015) ------------------