Merge remote-tracking branch 'upstream/develop' into fix/230_refresh

# Conflicts:
#	README.rst
This commit is contained in:
jcass 2017-02-18 14:25:07 +02:00
commit 98d6cb088b
4 changed files with 22 additions and 29 deletions

View File

@ -130,6 +130,7 @@ v2.4.0 (UNRELEASED)
- The last scroll position is now always saved when navigating between pages or browsing the library. - The last scroll position is now always saved when navigating between pages or browsing the library.
(Fixes: `#73 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/73>`_, `#93 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/93>`_). (Fixes: `#73 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/73>`_, `#93 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/93>`_).
- Playlists will now list tracks even if they are no longer available in the library. (Fixes: `#226 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/226>`_). - Playlists will now list tracks even if they are no longer available in the library. (Fixes: `#226 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/226>`_).
- Fixed an issue on Safari where the first page to load would be too wide to fit on the screen.
- Refreshing album or artist info pages no longer raises an exception. (Fixes: `#230 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/230>`_). - Refreshing album or artist info pages no longer raises an exception. (Fixes: `#230 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/230>`_).
v2.3.0 (2016-05-15) v2.3.0 (2016-05-15)

View File

@ -632,27 +632,30 @@ a {
color: #efefef; color: #efefef;
} }
/*tablets and desktop*/ /*desktop*/
@media (min-width: 35em) { @media (min-width: 55em) {
/* panel workaround to make it responsive wrap push on wide viewports once open */ /* panel workaround to make it responsive wrap push on wide viewports once open */
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-push, .ui-responsive-panel.ui-page-panel .ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-push,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-reveal, .ui-responsive-panel.ui-page-panel .ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-reveal,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-open.ui-panel-content-wrap-display-push, .ui-responsive-panel.ui-page-panel .ui-panel-content-wrap-open.ui-panel-content-wrap-display-push,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal { .ui-responsive-panel.ui-page-panel .ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal {
margin-right: 17em; margin-right: 17em;
} }
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-open.ui-panel-content-wrap-display-push.ui-panel-content-fixed-toolbar-position-right, .ui-responsive-panel.ui-page-panel .ui-panel-content-fixed-toolbar-open.ui-panel-content-wrap-display-push.ui-panel-content-fixed-toolbar-position-right,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-open.ui-panel-content-wrap-display-reveal.ui-panel-content-fixed-toolbar-position-right, .ui-responsive-panel.ui-page-panel .ui-panel-content-fixed-toolbar-open.ui-panel-content-wrap-display-reveal.ui-panel-content-fixed-toolbar-position-right,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-open.ui-panel-content-wrap-display-push.ui-panel-content-wrap-position-right, .ui-responsive-panel.ui-page-panel .ui-panel-content-wrap-open.ui-panel-content-wrap-display-push.ui-panel-content-wrap-position-right,
.ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal.ui-panel-content-wrap-position-right { .ui-responsive-panel.ui-page-panel .ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal.ui-panel-content-wrap-position-right {
margin: 0 0 0 17em; margin: 0 0 0 17em;
} }
.ui-responsive-panel .ui-panel-dismiss-display-reveal { .ui-responsive-panel .ui-panel-dismiss-display-reveal {
display: none; display: none;
} }
}
/*tablets and desktop*/
@media (min-width: 35em) {
.popupDialog { .popupDialog {
min-width: 320px; min-width: 320px;
} }

View File

@ -20,6 +20,12 @@ function resetSong () {
} }
function resizeMb () { function resizeMb () {
if ($(window).width() < 560) {
$('#panel').panel('close')
} else {
$('#panel').panel('open')
}
$('#infoname').html(songdata.track.name) $('#infoname').html(songdata.track.name)
$('#infoartist').html(artiststext) $('#infoartist').html(artiststext)
@ -287,10 +293,6 @@ function initSocketevents () {
}) })
} }
$(document).bind('pageinit', function () {
resizeMb()
})
/** ************ /** ************
* gui stuff * * gui stuff *
**************/ **************/
@ -378,10 +380,6 @@ function locationHashChanged () {
setHeadline(divid) setHeadline(divid)
if ($(window).width() < 560) {
$('#panel').panel('close')
}
$('.mainNav a').removeClass($.mobile.activeBtnClass) $('.mainNav a').removeClass($.mobile.activeBtnClass)
// i don't know why some li elements have those classes, but they do, so we need to remove them // i don't know why some li elements have those classes, but they do, so we need to remove them
$('.mainNav li').removeClass($.mobile.activeBtnClass) $('.mainNav li').removeClass($.mobile.activeBtnClass)
@ -522,12 +520,6 @@ $(document).ready(function (event) {
} }
}) })
if ($(window).width() < 980) {
$('#panel').panel('close')
} else {
$('#panel').panel('open')
}
$.event.special.swipe.horizontalDistanceThreshold = 125 // (default: 30px) Swipe horizontal displacement must be more than this. $.event.special.swipe.horizontalDistanceThreshold = 125 // (default: 30px) Swipe horizontal displacement must be more than this.
$.event.special.swipe.verticalDistanceThreshold = 50 // (default: 75px) Swipe vertical displacement must be less than this. $.event.special.swipe.verticalDistanceThreshold = 50 // (default: 75px) Swipe vertical displacement must be less than this.
$.event.special.swipe.durationThreshold = 500 $.event.special.swipe.durationThreshold = 500
@ -563,10 +555,7 @@ $(document).ready(function (event) {
$('#volumeslider').on('slidestop', function () { volumeSliding = false }) $('#volumeslider').on('slidestop', function () { volumeSliding = false })
$('#volumeslider').on('change', function () { controls.doVolume($(this).val()) }) $('#volumeslider').on('change', function () { controls.doVolume($(this).val()) })
$(window).resize(function () { $(window).resize(resizeMb).resize()
resizeMb()
})
resizeMb()
// Connect to server // Connect to server
var websocketUrl = $(document.body).data('websocket-url') var websocketUrl = $(document.body).data('websocket-url')

View File

@ -1,6 +1,6 @@
CACHE MANIFEST CACHE MANIFEST
# 2017-02-16:v2 # 2017-02-18:v1
NETWORK: NETWORK:
* *