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(','),
|
||||
+ (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 + '/'
|
||||
|
|
Loading…
Reference in a new issue