Merge pull request #117 from DavisNT/feature/RefreshPlaylists
Feature refresh playlists
This commit is contained in:
commit
4e8856f4f3
@ -59,6 +59,7 @@ v2.0.1 (UNRELEASED)
|
||||
- Fixed slow to start playing from a large tracklist of browsed tracks.
|
||||
- Added link to `Alarm Clock <https://pypi.python.org/pypi/Mopidy-AlarmClock/>`_ (if present).
|
||||
- Added ability to save Queue as local Playlist.
|
||||
- Added ability to manually initiate refresh of Playlists.
|
||||
|
||||
v2.0.0 (26-3-2015)
|
||||
------------------
|
||||
|
||||
@ -417,7 +417,6 @@
|
||||
#playlistspane {
|
||||
/* height: 90% !important;*/
|
||||
margin: 0px !important;
|
||||
padding: 2px !important;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
@ -314,21 +314,24 @@
|
||||
</div>
|
||||
<!-- /nowplaying -->
|
||||
|
||||
<div data-role="content" id="playlistspane" class="pane ui-grid-a pl-breakpoint">
|
||||
<div class="ui-block-a scroll" id="playlistslistdiv">
|
||||
<ul id="playlistslist" class="table"></ul>
|
||||
</div>
|
||||
<div class="ui-block-b scroll" id="playlisttracksdiv">
|
||||
<div data-role="content" id="playlistspane" class="pane">
|
||||
<a style="float:right; padding: 1.2em 10px" onclick="return refreshPlaylists();"><i class="fa fa-refresh"></i></a>
|
||||
<h4>Playlists</h4>
|
||||
<div class="ui-grid-a pl-breakpoint">
|
||||
<div class="ui-block-a scroll" id="playlistslistdiv">
|
||||
<ul id="playlistslist" class="table"></ul>
|
||||
</div>
|
||||
<div class="ui-block-b scroll" id="playlisttracksdiv">
|
||||
<div id="playlisttracksback" style="height: 30px; margin: 2px; padding-top: 2px; background-color: #aaa;"><a style="display:block; padding: 5px;" href="#" onclick="return togglePlaylists();"><i class="fa fa-arrow-circle-left"></i> Back</a></div>
|
||||
<ul class="table" id="playlisttracks"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--/playlistspane-->
|
||||
|
||||
<div data-role="content" id="browsepane" class="pane">
|
||||
<h3>Browse</h3>
|
||||
<h4 id="browsepath"></h4>
|
||||
<h4>Browse</h4>
|
||||
<h5 id="browsepath"></h5>
|
||||
<ul id="browselist" class="table"></ul>
|
||||
</div>
|
||||
<!--/browsepane-->
|
||||
|
||||
@ -251,6 +251,12 @@ function saveQueue() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function refreshPlaylists() {
|
||||
mopidy.playlists.refresh();
|
||||
return false;
|
||||
}
|
||||
|
||||
/**********************
|
||||
* Buttons
|
||||
*/
|
||||
|
||||
@ -126,7 +126,7 @@ function scrollToTracklist() {
|
||||
playlistslistScroll.refresh();
|
||||
}
|
||||
*/
|
||||
var divtop = $("#playlisttracksdiv").offset().top - 50;
|
||||
var divtop = $("#playlisttracksdiv").offset().top - 120;
|
||||
$('body,html').animate({
|
||||
scrollTop: divtop
|
||||
}, 250);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user