encodeURI(listname) before making it part of image URLs
This commit is contained in:
parent
1e10fb5967
commit
ab9172526b
3 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@ pandora.ui.folderBrowserList = function(id, section) {
|
||||||
clickable: true,
|
clickable: true,
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return $('<img>').attr({
|
return $('<img>').attr({
|
||||||
src: '/list/' + value + '/icon.jpg'
|
src: '/list/' + encodeURI(value) + '/icon.jpg'
|
||||||
}).css({
|
}).css({
|
||||||
width: '14px',
|
width: '14px',
|
||||||
height: '14px',
|
height: '14px',
|
||||||
|
|
|
@ -18,7 +18,7 @@ pandora.ui.folderList = function(id, section) {
|
||||||
},
|
},
|
||||||
format: function(value, data) {
|
format: function(value, data) {
|
||||||
return $('<img>').attr({
|
return $('<img>').attr({
|
||||||
src: '/' + folderItem.toLowerCase() + '/' + data.id + '/icon.jpg?' + data.modified
|
src: '/' + folderItem.toLowerCase() + '/' + encodeURI(data.id) + '/icon.jpg?' + data.modified
|
||||||
}).css({
|
}).css({
|
||||||
width: '14px',
|
width: '14px',
|
||||||
height: '14px',
|
height: '14px',
|
||||||
|
|
|
@ -544,12 +544,12 @@ pandora.ui.listIconPanel = function(listData) {
|
||||||
posterFrames: posterFrames
|
posterFrames: posterFrames
|
||||||
}, function() {
|
}, function() {
|
||||||
$icon.attr({
|
$icon.attr({
|
||||||
src: '/' + folderItem.toLowerCase() + '/' + listData.id + '/icon256.jpg?' + Ox.uid()
|
src: '/' + folderItem.toLowerCase() + '/' + encodeURI(listData.id) + '/icon256.jpg?' + Ox.uid()
|
||||||
});
|
});
|
||||||
pandora.$ui.folderList[listData.folder].$element
|
pandora.$ui.folderList[listData.folder].$element
|
||||||
.find('img[src*="/' + listData.id + '/"]')
|
.find('img[src*="/' + encodeURI(listData.id) + '/"]')
|
||||||
.attr({
|
.attr({
|
||||||
src: '/' + folderItem.toLowerCase() + '/' + listData.id + '/icon.jpg?' + Ox.uid()
|
src: '/' + folderItem.toLowerCase() + '/' + encodeURI(listData.id) + '/icon.jpg?' + Ox.uid()
|
||||||
});
|
});
|
||||||
pandora.$ui.info.updateListInfo();
|
pandora.$ui.info.updateListInfo();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue