update embed url formatting

This commit is contained in:
rolux 2013-07-12 12:31:35 +02:00
parent d69b28e3b1
commit 9e20e8d06a

View file

@ -425,13 +425,15 @@ pandora.ui.insertEmbedDialog = function(/*[url, ]callback*/) {
: [] : []
).join(','), ).join(','),
+ (data.annotation || '') + (data.annotation || '')
+ '#?embed=true' + '#embed?'
+ (data.title ? '&title=' + JSON.stringify(data.title) : '') + Ox.serialize({
+ (data.showTimeline ? '&showTimeline=true' : '') title: data.title ? JSON.stringify(data.title) : null,
+ (data.timeline != 'default' ? '&timeline=' + JSON.stringify(data.timeline) : '') showTimeline: data.showTimeline || null,
+ (data.showAnnotations ? '&showAnnotations=true' : '') timeline: data.timeline ? JSON.stringify(data.timeline) : '',
+ (data.showAnnotations && data.showLayers.length ? '&showLayers=' + JSON.stringify(data.showLayers) : '') showAnnotations: data.showAnnotations || null,
+ '&matchRatio=true'); showLayers: data.showAnnotations && data.showLayers.length ? JSON.stringify(data.showLayers) : null,
matchRatio: true
})
$input.url.options({ $input.url.options({
value: data.protocol + '://' value: data.protocol + '://'
+ data.site + '/' + data.site + '/'