fix metadataDialog and insertEmbedDialog

This commit is contained in:
rolux 2013-02-23 11:46:32 +05:30
parent 6d8e27c043
commit 12d05c7a53
2 changed files with 56 additions and 56 deletions

View file

@ -13,7 +13,7 @@ pandora.ui.insertEmbedDialog = function(callback) {
if (id == 'video') {
var $form = Ox.Element().attr({id: 'form'}),
var $form = Ox.Element().attr({id: 'form'});
$element.advanced = Ox.ButtonGroup({
buttons: [
@ -60,7 +60,7 @@ pandora.ui.insertEmbedDialog = function(callback) {
],
label: 'Protocol',
labelWidth: 128,
value: 'http://'
value: 'http',
width: formWidth
})
.bindEvent({
@ -182,7 +182,7 @@ pandora.ui.insertEmbedDialog = function(callback) {
$element.showTimeline = Ox.Checkbox({
label: 'Show Large Timeline',
labelWidth: 128
labelWidth: 128,
value: false,
width: formWidth
})
@ -211,7 +211,7 @@ pandora.ui.insertEmbedDialog = function(callback) {
$element.showAnnotations = Ox.Checkbox({
label: 'Show Annotations',
labelWidth: 128
labelWidth: 128,
value: false,
width: formWidth
})
@ -240,7 +240,7 @@ pandora.ui.insertEmbedDialog = function(callback) {
type: 'list',
value: pandora.site.layers.map(function(layer) {
return layer.id;
})
}),
width: formWidth
})
.bindEvent({
@ -251,6 +251,10 @@ pandora.ui.insertEmbedDialog = function(callback) {
updateForm();
return $form;
}
function formatURL() {
var data = $element.map(function($e) {
return $e.options('value');
@ -299,16 +303,12 @@ pandora.ui.insertEmbedDialog = function(callback) {
]();
}
return $form;
}
},
tabs: [{
tabs: [
{id: 'video', title: 'Video', selected: true},
{id: 'map', title: 'Map', disabled: true},
{id: 'calendar', title: 'Calendar', disabled: true}
}]
]
}),
that = Ox.Dialog({

View file

@ -104,7 +104,7 @@ pandora.ui.metadataDialog = function(data) {
}
}),
Ox.Input({
value: formatValue(v, itemKey.type)
value: formatValue(v, itemKey.type),
width: formWidth - 80
})
.bindEvent({