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

View file

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