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(','),
+ (data.annotation || '')
+ '#?embed=true'
+ (data.title ? '&title=' + JSON.stringify(data.title) : '')
+ (data.showTimeline ? '&showTimeline=true' : '')
+ (data.timeline != 'default' ? '&timeline=' + JSON.stringify(data.timeline) : '')
+ (data.showAnnotations ? '&showAnnotations=true' : '')
+ (data.showAnnotations && data.showLayers.length ? '&showLayers=' + JSON.stringify(data.showLayers) : '')
+ '&matchRatio=true');
+ '#embed?'
+ Ox.serialize({
title: data.title ? JSON.stringify(data.title) : null,
showTimeline: data.showTimeline || null,
timeline: data.timeline ? JSON.stringify(data.timeline) : '',
showAnnotations: data.showAnnotations || null,
showLayers: data.showAnnotations && data.showLayers.length ? JSON.stringify(data.showLayers) : null,
matchRatio: true
})
$input.url.options({
value: data.protocol + '://'
+ data.site + '/'