diff options
author | montellese <montellese@xbmc.org> | 2012-08-12 15:48:59 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-08-12 15:48:59 +0200 |
commit | a058f25bdabb90752c2bd425fa07ceedaeb19c4a (patch) | |
tree | 129ee27331e96267ded82bcc8d3124aa167325f9 /addons | |
parent | 6037f25dfbc4c4a0403a3ac381619fe63c80fc8c (diff) |
[webinterface.default] more relative paths (missed in 6b20411ea87962174a5f0f3ee60319531b0a9578)
Diffstat (limited to 'addons')
-rwxr-xr-x | addons/webinterface.default/js/MediaLibrary.js | 6 | ||||
-rwxr-xr-x | addons/webinterface.default/js/NowPlayingManager.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/webinterface.default/js/MediaLibrary.js b/addons/webinterface.default/js/MediaLibrary.js index 64b0a40e2e..01c275643b 100755 --- a/addons/webinterface.default/js/MediaLibrary.js +++ b/addons/webinterface.default/js/MediaLibrary.js @@ -454,7 +454,7 @@ MediaLibrary.prototype = { } }, getThumbnailPath: function(thumbnail) { - return thumbnail ? ('/image/' + encodeURI(thumbnail)) : DEFAULT_ALBUM_COVER; + return thumbnail ? ('image/' + encodeURI(thumbnail)) : DEFAULT_ALBUM_COVER; }, generateThumb: function(type, thumbnail, title, artist) { var floatableAlbum = $('<div>'); @@ -752,7 +752,7 @@ MediaLibrary.prototype = { displayEpisodeDetails: function(event) { var episodeDetails = $('<div>').attr('id', 'episode-' + event.data.episode.episodeid).addClass('episodePopoverContainer'); - episodeDetails.append($('<img>').attr('src', '/images/close-button.png').addClass('closeButton').bind('click', jQuery.proxy(this.hideOverlay, this))); + episodeDetails.append($('<img>').attr('src', 'images/close-button.png').addClass('closeButton').bind('click', jQuery.proxy(this.hideOverlay, this))); episodeDetails.append($('<img>').attr('src', this.getThumbnailPath(event.data.episode.thumbnail)).addClass('episodeCover')); episodeDetails.append($('<div>').addClass('playIcon').bind('click', {episode: event.data.episode}, jQuery.proxy(this.playTVShow, this))); var episodeTitle = $('<p>').addClass('episodeTitle'); @@ -838,7 +838,7 @@ MediaLibrary.prototype = { }, displayMovieDetails: function(event) { var movieDetails = $('<div>').attr('id', 'movie-' + event.data.movie.movieid).addClass('moviePopoverContainer'); - movieDetails.append($('<img>').attr('src', '/images/close-button.png').addClass('closeButton').bind('click', jQuery.proxy(this.hideOverlay, this))); + movieDetails.append($('<img>').attr('src', 'images/close-button.png').addClass('closeButton').bind('click', jQuery.proxy(this.hideOverlay, this))); movieDetails.append($('<img>').attr('src', this.getThumbnailPath(event.data.movie.thumbnail)).addClass('movieCover')); movieDetails.append($('<div>').addClass('playIcon').bind('click', {movie: event.data.movie}, jQuery.proxy(this.playMovie, this))); var movieTitle = $('<p>').addClass('movieTitle'); diff --git a/addons/webinterface.default/js/NowPlayingManager.js b/addons/webinterface.default/js/NowPlayingManager.js index d251168f76..4a9ca81e94 100755 --- a/addons/webinterface.default/js/NowPlayingManager.js +++ b/addons/webinterface.default/js/NowPlayingManager.js @@ -382,7 +382,7 @@ NowPlayingManager.prototype = { this.lastPlaylistItem = this.activePlaylistItem; var imgPath = DEFAULT_ALBUM_COVER; if (this.activePlaylistItem.thumbnail) { - imgPath = '/image/' + encodeURI(this.activePlaylistItem.thumbnail); + imgPath = 'image/' + encodeURI(this.activePlaylistItem.thumbnail); } $('#audioCoverArt').html('<img src="' + imgPath + '" alt="' + this.activePlaylistItem.album + ' cover art">'); $('#audioTrackTitle').html('<span title="' + this.activePlaylistItem.title + '">' + this.activePlaylistItem.title + '</span>'); @@ -430,7 +430,7 @@ NowPlayingManager.prototype = { this.lastPlaylistItem = this.activePlaylistItem; var imgPath = DEFAULT_VIDEO_COVER; if (this.activePlaylistItem.thumbnail) { - imgPath = '/image/' + encodeURI(this.activePlaylistItem.thumbnail); + imgPath = 'image/' + encodeURI(this.activePlaylistItem.thumbnail); } $('#videoCoverArt').html('<img src="' + imgPath + '" alt="' + this.activePlaylistItem.title + ' cover art">'); $('#videoShowTitle').html(this.activePlaylistItem.showtitle||' '); |