diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2016-10-15 07:47:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-15 07:47:32 +0100 |
commit | 73d5787fc14cc6b72f296edf33cce1274e8dc5a0 (patch) | |
tree | bdb2c3eb83837e4aba4f9252385e18ffa653ab9a /addons/webinterface.default | |
parent | 50cf018dab5c4ce24fc08404602faf6faab37466 (diff) | |
parent | 4ddfff5e581aefc438a67d18f9daf3db6d3b48c2 (diff) |
Merge pull request #9853 from chewitt/webgui_poster
[webinterface.default] tvshows: default to poster view and use sorttitle
Diffstat (limited to 'addons/webinterface.default')
-rwxr-xr-x | addons/webinterface.default/js/MediaLibrary.js | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/addons/webinterface.default/js/MediaLibrary.js b/addons/webinterface.default/js/MediaLibrary.js index 10f9dc3865..185e711549 100755 --- a/addons/webinterface.default/js/MediaLibrary.js +++ b/addons/webinterface.default/js/MediaLibrary.js @@ -496,13 +496,6 @@ MediaLibrary.prototype = { $("#togglePoster").removeClass('activeMode'); $("#toggleLandscape").removeClass('activeMode'); switch(view) { - case 'poster': - xbmc.core.setCookie('TVView','poster'); - wthumblist='135px'; - hthumblist='199px'; - hthumbdetails='559px'; - $("#togglePoster").addClass('activeMode'); - break; case 'landscape': xbmc.core.setCookie('TVView','landscape'); wthumblist='210px'; @@ -510,14 +503,21 @@ MediaLibrary.prototype = { hthumbdetails='213px'; $("#toggleLandscape").addClass('activeMode'); break; - default: + case 'banner': xbmc.core.setCookie('TVView','banner'); wthumblist='379px'; hthumblist='70px'; hthumbdetails='70px'; $("#toggleBanner").addClass('activeMode'); break; - } + default: + xbmc.core.setCookie('TVView','poster'); + wthumblist='135px'; + hthumblist='199px'; + hthumbdetails='559px'; + $("#togglePoster").addClass('activeMode'); + break; + } $(".floatableTVShowCover, .floatableTVShowCover div.imgWrapper, .floatableTVShowCover img, .floatableTVShowCover div.imgWrapper div.inner").css('width',wthumblist).css('height',hthumblist); $(".floatableTVShowCoverSeason div.imgWrapper, .floatableTVShowCoverSeason div.imgWrapper div.inner,.floatableTVShowCoverSeason img, .floatableTVShowCoverSeason").css('height',hthumbdetails); }, @@ -886,7 +886,11 @@ MediaLibrary.prototype = { 'studio', 'mpaa', 'premiered' - ] + ], + 'sort': { + 'method': 'sorttitle', + 'ignorearticle': true + } }, 'success': function (data) { if (data && data.result && data.result.tvshows) { |