2011-11-05 17:04:10 +00:00
|
|
|
'use strict';
|
|
|
|
|
2012-04-17 06:31:44 +00:00
|
|
|
pandora.ui.editor = function(data) {
|
2018-03-06 09:16:43 +00:00
|
|
|
|
2012-06-15 13:20:35 +00:00
|
|
|
var ui = pandora.user.ui,
|
2018-03-06 09:16:43 +00:00
|
|
|
rightsLevel = data.rightslevel,
|
2012-04-17 12:06:27 +00:00
|
|
|
|
2013-10-22 14:45:39 +00:00
|
|
|
that = Ox.VideoAnnotationPanel({
|
2012-06-15 13:20:35 +00:00
|
|
|
annotationsCalendarSize: ui.annotationsCalendarSize,
|
|
|
|
annotationsMapSize: ui.annotationsMapSize,
|
|
|
|
annotationsRange: ui.annotationsRange,
|
|
|
|
annotationsSize: ui.annotationsSize,
|
|
|
|
annotationsSort: ui.annotationsSort,
|
2014-02-14 15:23:59 +00:00
|
|
|
annotationsTooltip: Ox._('annotations')
|
2014-09-25 19:56:19 +00:00
|
|
|
+ ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'A</span>',
|
2014-07-24 17:21:57 +00:00
|
|
|
audioTrack: data.audioTrack,
|
2012-06-15 13:20:35 +00:00
|
|
|
censored: data.censored,
|
|
|
|
censoredIcon: pandora.site.cantPlay.icon,
|
2014-02-14 15:23:59 +00:00
|
|
|
censoredTooltip: Ox._(pandora.site.cantPlay.text),
|
2012-06-15 13:20:35 +00:00
|
|
|
clickLink: pandora.clickLink,
|
|
|
|
cuts: data.cuts || [],
|
|
|
|
duration: data.duration,
|
2017-11-04 09:53:27 +00:00
|
|
|
enableDownload: pandora.hasCapability('canDownloadVideo') >= data.rightslevel || data.editable,
|
|
|
|
enableExport: pandora.hasCapability('canExportAnnotations') || data.editable,
|
|
|
|
enableImport: pandora.hasCapability('canImportAnnotations') || data.editable,
|
2012-06-15 13:20:35 +00:00
|
|
|
enableSetPosterFrame: !pandora.site.media.importFrames && data.editable,
|
|
|
|
enableSubtitles: ui.videoSubtitles,
|
|
|
|
find: ui.itemFind,
|
|
|
|
getFrameURL: function(position) {
|
2014-02-02 11:30:25 +00:00
|
|
|
return pandora.getMediaURL('/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg?' + data.modified);
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
getLargeTimelineURL: function(type, i) {
|
2014-02-02 11:30:25 +00:00
|
|
|
return pandora.getMediaURL('/' + ui.item + '/timeline' + type + '64p' + i + '.jpg?' + data.modified);
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
getSmallTimelineURL: function(type, i) {
|
2014-02-02 11:30:25 +00:00
|
|
|
return pandora.getMediaURL('/' + ui.item + '/timeline' + type + '16p' + i + '.jpg?' + data.modified);
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
height: pandora.$ui.contentPanel.size(1),
|
|
|
|
id: 'editor',
|
|
|
|
'in': ui.videoPoints[ui.item]['in'],
|
2014-01-19 06:28:05 +00:00
|
|
|
itemName: pandora.site.itemName,
|
2012-06-15 13:20:35 +00:00
|
|
|
layers: data.annotations.map(function(layer) {
|
|
|
|
return Ox.extend({
|
|
|
|
editable: layer.canAddAnnotations[pandora.user.level]
|
2015-04-14 18:49:22 +00:00
|
|
|
}, layer, {
|
|
|
|
autocomplete: layer.type == 'entity'
|
|
|
|
? function(key, value, callback) {
|
|
|
|
pandora.api.autocompleteEntities({
|
2015-06-24 14:42:38 +00:00
|
|
|
key: layer.entity,
|
2015-04-14 18:49:22 +00:00
|
|
|
operator: '=',
|
|
|
|
range: [0, 20],
|
|
|
|
value: value
|
|
|
|
}, function(result) {
|
|
|
|
callback(result.data.items);
|
|
|
|
})
|
|
|
|
} : layer.autocomplete
|
|
|
|
? function(key, value, callback) {
|
Support autocomplete from a group of layers
The idea here is to have several layers which share a set of tags. This
mirrors what we already have if several layers reference the same type
of entity. You might have config like this:
{
"id": "keywords",
"title": "Keywords",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
"item": "Keyword",
"overlap": true,
"type": "string",
"autocomplete": true,
"autocompleteKeys": ["keywords", "minorkeywords"]
},
{
"id": "minorkeywords",
"title": "Minor Keywords",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
"item": "Keyword",
"overlap": true,
"type": "string",
"autocomplete": true,
"autocompleteKeys": ["keywords", "minorkeywords"]
},
Now, adding new keywords in either bin will offer autocompletions from
the union of the two layers. The other option would be to do this on the
server side, but I thought this was a less invasive way to achieve this.
2015-09-14 19:29:02 +00:00
|
|
|
var keys = layer.autocompleteKeys && layer.autocompleteKeys.length
|
|
|
|
? layer.autocompleteKeys
|
|
|
|
: [key];
|
|
|
|
var n = keys.length;
|
|
|
|
var itemss = [];
|
|
|
|
|
|
|
|
keys.forEach(function(key) {
|
|
|
|
pandora.api.autocomplete({
|
|
|
|
key: key,
|
|
|
|
operator: '=',
|
|
|
|
range: [0, 20],
|
|
|
|
value: value
|
|
|
|
}, function(result) {
|
|
|
|
n--;
|
|
|
|
itemss.push(result.data.items);
|
|
|
|
if (n == 0) {
|
|
|
|
callback(Ox.unique(Ox.flatten(itemss)));
|
|
|
|
}
|
|
|
|
});
|
2015-04-14 18:49:22 +00:00
|
|
|
});
|
|
|
|
} : null
|
|
|
|
});
|
2012-06-15 13:20:35 +00:00
|
|
|
}),
|
2013-08-06 09:55:22 +00:00
|
|
|
loop: ui.videoLoop,
|
2012-06-15 13:20:35 +00:00
|
|
|
muted: ui.videoMuted,
|
|
|
|
out: ui.videoPoints[ui.item].out,
|
|
|
|
position: ui.videoPoints[ui.item].position,
|
|
|
|
posterFrame: data.posterFrame,
|
|
|
|
resolution: ui.videoResolution,
|
|
|
|
selected: ui.videoPoints[ui.item].annotation
|
|
|
|
? ui.item + '/' + ui.videoPoints[ui.item].annotation
|
|
|
|
: '',
|
2014-02-18 07:52:21 +00:00
|
|
|
selectResult: !pandora._dontSelectResult,
|
2012-06-15 13:20:35 +00:00
|
|
|
showAnnotations: ui.showAnnotations,
|
|
|
|
showAnnotationsCalendar: ui.showAnnotationsCalendar,
|
|
|
|
showAnnotationsMap: ui.showAnnotationsMap,
|
|
|
|
showLargeTimeline: true,
|
|
|
|
showLayers: Ox.clone(ui.showLayers),
|
|
|
|
showUsers: pandora.site.annotations.showUsers,
|
|
|
|
subtitles: data.subtitles,
|
2014-07-24 17:21:57 +00:00
|
|
|
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
2013-10-22 17:42:11 +00:00
|
|
|
subtitlesLayer: data.subtitlesLayer,
|
2015-04-14 14:53:47 +00:00
|
|
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
2014-07-24 17:21:57 +00:00
|
|
|
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
2012-06-15 13:20:35 +00:00
|
|
|
timeline: ui.videoTimeline,
|
|
|
|
timelines: pandora.site.timelines,
|
|
|
|
video: data.video,
|
|
|
|
videoRatio: data.videoRatio,
|
|
|
|
videoSize: ui.videoSize,
|
|
|
|
volume: ui.videoVolume,
|
2017-01-26 16:41:50 +00:00
|
|
|
width: Ox.$document.width() - pandora.$ui.mainPanel.size(0) - 1
|
2012-06-15 13:20:35 +00:00
|
|
|
}).bindEvent({
|
|
|
|
addannotation: function(data) {
|
|
|
|
Ox.Log('', 'addAnnotation', data);
|
|
|
|
// async to not capture keyboard input
|
|
|
|
setTimeout(function() {
|
2012-06-16 15:24:09 +00:00
|
|
|
var created = Ox.formatDate(new Date(), '%Y-%m-%dT%H:%M:%SZ'),
|
2012-06-15 13:20:35 +00:00
|
|
|
type = Ox.getObjectById(pandora.site.layers, data.layer).type;
|
|
|
|
that.addAnnotation(data.layer, Ox.extend(
|
|
|
|
{
|
|
|
|
created: created,
|
|
|
|
duration: data.out - data['in'],
|
|
|
|
editable: true,
|
|
|
|
id: '_' + Ox.uid(),
|
|
|
|
'in': data['in'],
|
|
|
|
modified: created,
|
|
|
|
out: data.out,
|
|
|
|
user: pandora.user.username,
|
|
|
|
value: ''
|
|
|
|
},
|
|
|
|
type == 'place' ? {
|
|
|
|
place: {lat: null, lng: null}
|
|
|
|
} : type == 'event' ? {
|
|
|
|
event: {start: '', end: ''}
|
|
|
|
} : {}
|
|
|
|
));
|
2013-03-09 07:30:56 +00:00
|
|
|
Ox.Request.clearCache();
|
2012-06-15 13:20:35 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
annotationsrange: function(data) {
|
|
|
|
pandora.UI.set({annotationsRange: data.range});
|
|
|
|
},
|
|
|
|
annotationssize: function(data) {
|
|
|
|
pandora.UI.set({annotationsSize: data.size});
|
|
|
|
},
|
|
|
|
annotationssort: function(data) {
|
|
|
|
pandora.UI.set({annotationsSort: data.sort});
|
|
|
|
},
|
|
|
|
censored: function() {
|
|
|
|
pandora.URL.push(pandora.site.cantPlay.link);
|
|
|
|
},
|
2013-07-14 16:38:15 +00:00
|
|
|
copy: function(data) {
|
2013-08-03 15:01:47 +00:00
|
|
|
pandora.clipboard.copy(data.map(function(clip) {
|
2013-08-02 19:38:18 +00:00
|
|
|
return clip.annotation || ui.item + '/' + clip['in'] + '-' + clip.out
|
2013-07-13 20:59:28 +00:00
|
|
|
}), 'clip');
|
|
|
|
},
|
2013-07-14 16:38:15 +00:00
|
|
|
copyadd: function(data) {
|
2013-08-03 15:01:47 +00:00
|
|
|
pandora.clipboard.add(data.map(function(clip) {
|
2013-08-02 19:38:18 +00:00
|
|
|
return clip.annotation || ui.item + '/' + clip['in'] + '-' + clip.out
|
2013-07-13 20:59:28 +00:00
|
|
|
}), 'clip');
|
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
define: function(data) {
|
|
|
|
var dialog = data.type + 'sDialog';
|
|
|
|
pandora.$ui[dialog] && pandora.$ui[dialog].remove();
|
|
|
|
pandora.$ui[dialog] = pandora.ui[dialog](data).open();
|
|
|
|
},
|
2013-11-18 09:52:44 +00:00
|
|
|
downloadvideo: function() {
|
2018-03-06 09:16:43 +00:00
|
|
|
pandora.ui.downloadVideoDialog({
|
|
|
|
item: ui.item,
|
|
|
|
rightsLevel: rightsLevel,
|
|
|
|
title: data.title
|
|
|
|
}).open();
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
2018-03-06 09:16:43 +00:00
|
|
|
downloadselection: function(selection) {
|
|
|
|
pandora.ui.downloadVideoDialog({
|
|
|
|
item: ui.item,
|
|
|
|
'in': selection['in'],
|
|
|
|
out: selection.out,
|
|
|
|
rightsLevel: rightsLevel,
|
|
|
|
title: data.title
|
|
|
|
}).open();
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
editannotation: function(data) {
|
|
|
|
Ox.Log('', 'editAnnotation', data);
|
|
|
|
function callback(result) {
|
|
|
|
Ox.Log('', 'editAnnotation result', result);
|
2015-02-06 09:41:57 +00:00
|
|
|
if (!Ox.isEmpty(result.data)) {
|
|
|
|
result.data.date = Ox.formatDate(
|
|
|
|
result.data.modified.slice(0, 10), '%B %e, %Y'
|
|
|
|
);
|
|
|
|
result.data.languages = (
|
|
|
|
result.data.languages || [pandora.site.language]
|
|
|
|
).map(function(language) {
|
|
|
|
return Ox.getLanguageNameByCode(language);
|
|
|
|
});
|
|
|
|
}
|
2012-06-15 13:20:35 +00:00
|
|
|
that.updateAnnotation(data.id, result.data);
|
2018-03-31 08:30:52 +00:00
|
|
|
pandora.UI.set('videoPoints.' + ui.item + '.annotation', result.data.id.split('/')[1] || '');
|
2013-03-09 07:30:56 +00:00
|
|
|
Ox.Request.clearCache();
|
2012-06-15 13:20:35 +00:00
|
|
|
};
|
|
|
|
if (data.id[0] == '_') {
|
|
|
|
pandora.api.addAnnotation({
|
2012-04-17 06:31:44 +00:00
|
|
|
'in': data['in'],
|
2012-06-15 13:20:35 +00:00
|
|
|
item: ui.item,
|
|
|
|
layer: data.layer,
|
2012-04-17 06:31:44 +00:00
|
|
|
out: data.out,
|
2012-06-15 13:20:35 +00:00
|
|
|
value: data.value
|
|
|
|
}, callback);
|
|
|
|
} else {
|
|
|
|
pandora.api.editAnnotation({
|
|
|
|
id: data.id,
|
|
|
|
'in': data['in'],
|
|
|
|
out: data.out,
|
|
|
|
value: data.value
|
|
|
|
}, callback);
|
|
|
|
}
|
|
|
|
},
|
2013-04-26 08:44:09 +00:00
|
|
|
embedselection: function() {
|
|
|
|
pandora.$ui.embedVideoDialog && pandora.$ui.embedVideoDialog.remove();
|
|
|
|
pandora.$ui.embedVideoDialog = pandora.ui.embedVideoDialog().open();
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
2014-09-17 13:10:17 +00:00
|
|
|
exportannotations: function() {
|
2014-09-18 15:24:38 +00:00
|
|
|
pandora.api.get({
|
|
|
|
id: ui.item,
|
|
|
|
keys: ['title']
|
|
|
|
}, function(result) {
|
|
|
|
pandora.$ui.exportAnnotationsDialog = pandora.ui.exportAnnotationsDialog({title: result.data.title}).open();
|
|
|
|
})
|
2014-09-17 13:10:17 +00:00
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
find: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({itemFind: data.find});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
findannotations: function(data) {
|
|
|
|
pandora.UI.set({
|
|
|
|
item: '',
|
|
|
|
find: {
|
|
|
|
conditions: [{key: data.key, value: data.value, operator: '='}],
|
|
|
|
operator: '&'
|
2012-04-17 06:31:44 +00:00
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
listView: 'clip'
|
|
|
|
});
|
|
|
|
},
|
2013-08-02 16:01:50 +00:00
|
|
|
gainfocus: function() {
|
|
|
|
pandora.$ui.mainMenu.replaceItemMenu();
|
|
|
|
},
|
2014-09-18 12:16:38 +00:00
|
|
|
importannotations: function() {
|
2014-09-18 14:43:48 +00:00
|
|
|
pandora.$ui.importAnnotationsDialog = pandora.ui.importAnnotationsDialog({duration: data.duration}).open();
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
info: function(data) {
|
|
|
|
pandora.ui.annotationDialog(
|
|
|
|
Ox.getObjectById(pandora.site.layers, data.layer).title
|
|
|
|
).open();
|
|
|
|
},
|
2014-06-06 11:19:04 +00:00
|
|
|
linktoselection: function(data) {
|
|
|
|
pandora.$ui.linkVideoDialog && pandora.$ui.linkVideoDialog.remove();
|
|
|
|
pandora.$ui.linkVideoDialog = pandora.ui.linkVideoDialog().open();
|
|
|
|
},
|
2013-08-06 09:55:22 +00:00
|
|
|
loop: function(data) {
|
|
|
|
pandora.UI.set({videoLoop: data.loop});
|
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
muted: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({videoMuted: data.muted});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
2013-07-08 12:40:51 +00:00
|
|
|
playing: function(data) {
|
|
|
|
pandora.UI.set(
|
|
|
|
'videoPoints.' + ui.item + '.position',
|
|
|
|
data.position
|
|
|
|
);
|
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
points: function(data) {
|
|
|
|
pandora.UI.set('videoPoints.' + ui.item, {
|
|
|
|
annotation: ui.videoPoints[ui.item].annotation,
|
2012-04-17 06:31:44 +00:00
|
|
|
'in': data['in'],
|
|
|
|
out: data.out,
|
2012-06-15 13:20:35 +00:00
|
|
|
position: data.position
|
|
|
|
});
|
|
|
|
},
|
|
|
|
position: function(data) {
|
|
|
|
pandora.UI.set(
|
|
|
|
'videoPoints.' + ui.item + '.position',
|
|
|
|
data.position
|
|
|
|
);
|
|
|
|
},
|
|
|
|
posterframe: function(data) {
|
|
|
|
pandora.api.setPosterFrame({
|
|
|
|
id: ui.item,
|
|
|
|
position: data.position
|
2013-02-11 05:44:13 +00:00
|
|
|
}, function() {
|
|
|
|
if (pandora.$ui.videoPreview) {
|
|
|
|
pandora.$ui.videoPreview.options({
|
|
|
|
position: data.position
|
|
|
|
});
|
|
|
|
}
|
2013-02-12 02:02:59 +00:00
|
|
|
if (ui.listSort[0].key == 'modified') {
|
2013-02-12 01:58:09 +00:00
|
|
|
Ox.Request.clearCache('find');
|
2013-03-02 09:24:57 +00:00
|
|
|
pandora.$ui.browser
|
|
|
|
.reloadList()
|
|
|
|
.bindEventOnce({
|
|
|
|
load: function() {
|
|
|
|
updateBrowser();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
updateBrowser();
|
2013-02-12 01:58:09 +00:00
|
|
|
}
|
2012-06-15 13:20:35 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
removeannotation: function(data) {
|
|
|
|
pandora.UI.set('videoPoints.' + ui.item + '.annotation', null);
|
|
|
|
pandora.api.removeAnnotation({
|
|
|
|
id: data.id
|
|
|
|
}, function(result) {
|
|
|
|
//fixme: check for errors
|
|
|
|
//that.removeAnnotation(data.layer, data.id);
|
2013-03-09 07:30:56 +00:00
|
|
|
Ox.Request.clearCache();
|
2012-06-15 13:20:35 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
resize: function(data) {
|
|
|
|
that.options({height: data.size});
|
|
|
|
},
|
|
|
|
resizecalendar: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({annotationsCalendarSize: data.size});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
resizemap: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({annotationsMapSize: data.size});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
resolution: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({videoResolution: data.resolution});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
select: function(data) {
|
2013-08-06 10:37:53 +00:00
|
|
|
pandora.UI.set('videoPoints.' + ui.item + '.annotation', data.id.split('/')[1] || '');
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
2015-04-16 20:02:31 +00:00
|
|
|
showentityinfo: function(data) {
|
|
|
|
pandora.URL.push('/entities/' + data.id)
|
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
subtitles: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({videoSubtitles: data.subtitles});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
timeline: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({videoTimeline: data.timeline});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
2013-03-07 12:48:20 +00:00
|
|
|
toggleannotations: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({showAnnotations: data.showAnnotations});
|
2013-03-07 12:48:20 +00:00
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
togglecalendar: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({showAnnotationsCalendar: !data.collapsed});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
2013-03-07 12:48:20 +00:00
|
|
|
togglelayer: function(data) {
|
|
|
|
pandora.UI.set('showLayers.' + data.layer, !data.collapsed);
|
|
|
|
},
|
2012-06-15 13:20:35 +00:00
|
|
|
togglemap: function(data) {
|
2013-07-14 15:36:49 +00:00
|
|
|
pandora.UI.set({showAnnotationsMap: !data.collapsed});
|
2012-06-15 13:20:35 +00:00
|
|
|
},
|
|
|
|
togglesize: function(data) {
|
|
|
|
pandora.UI.set({videoSize: data.size});
|
|
|
|
},
|
|
|
|
pandora_showannotations: function(data) {
|
|
|
|
that.options({showAnnotations: data.value});
|
|
|
|
},
|
|
|
|
pandora_videotimeline: function(data) {
|
|
|
|
that.options({timeline: data.value});
|
2012-04-17 06:31:44 +00:00
|
|
|
}
|
2012-06-15 13:20:35 +00:00
|
|
|
});
|
2014-09-18 12:16:38 +00:00
|
|
|
|
2014-02-18 07:52:21 +00:00
|
|
|
pandora._dontSelectResult = false;
|
2012-06-15 13:20:35 +00:00
|
|
|
|
2013-03-02 09:24:57 +00:00
|
|
|
function updateBrowser() {
|
2013-03-02 10:14:46 +00:00
|
|
|
pandora.$ui.browser.find('img[src*="/' + ui.item + '/"]').each(function() {
|
2013-03-02 09:24:57 +00:00
|
|
|
$(this).attr({
|
2014-02-02 11:30:25 +00:00
|
|
|
src: pandora.getMediaURL('/' + ui.item + '/' + (
|
2013-03-02 10:14:46 +00:00
|
|
|
ui.icons == 'posters' ? 'poster' : 'icon'
|
2014-02-02 11:30:25 +00:00
|
|
|
) + '128.jpg?' + Ox.uid())
|
2013-03-02 09:24:57 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2012-06-15 13:20:35 +00:00
|
|
|
return that;
|
2012-04-17 06:31:44 +00:00
|
|
|
|
2011-05-25 19:42:45 +00:00
|
|
|
};
|