forked from 0x2620/pandora
update embed url formatting
This commit is contained in:
parent
d69b28e3b1
commit
9e20e8d06a
1 changed files with 9 additions and 7 deletions
|
@ -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 + '/'
|
||||||
|
|
Loading…
Reference in a new issue