update embed dialog

This commit is contained in:
rolux 2014-02-16 07:39:18 +00:00
parent 7f4d4886a1
commit 394c38a21e

View file

@ -352,7 +352,6 @@ pandora.ui.embedDialog = function(/*[url, ]callback*/) {
width: formWidth, width: formWidth,
value: '...' value: '...'
}) })
.addClass('link')
.css(css) .css(css)
.bindEvent({ .bindEvent({
change: function(data) { change: function(data) {
@ -381,7 +380,6 @@ pandora.ui.embedDialog = function(/*[url, ]callback*/) {
}) })
] ]
}) })
.addClass('iframe')
.css(css) .css(css)
.bindEvent({ .bindEvent({
change: updateHTML change: updateHTML
@ -409,7 +407,7 @@ pandora.ui.embedDialog = function(/*[url, ]callback*/) {
width: 80 width: 80
}), }),
$input.hostname = Ox.SelectInput({ $input.hostname = Ox.SelectInput({
inputWidth: formWidth - labelWidth - 160, inputWidth: 192,
id: 'hostname', id: 'hostname',
items: sites.concat([{id: 'other', title: Ox._('Other...')}]), items: sites.concat([{id: 'other', title: Ox._('Other...')}]),
max: 1, max: 1,
@ -775,8 +773,8 @@ pandora.ui.embedDialog = function(/*[url, ]callback*/) {
var advanced = $input.advanced.value(), var advanced = $input.advanced.value(),
type = $input.type.value(), type = $input.type.value(),
view = $list.options('selected')[0]; view = $list.options('selected')[0];
$form.find('.link')[type == 'link' ? 'show' : 'hide'](); $input.text[type == 'link' ? 'show' : 'hide']();
$form.find('.iframe')[type == 'iframe' ? 'show' : 'hide'](); $input.size[type == 'iframe' ? 'show' : 'hide']();
$input.site[advanced ? 'show' : 'hide'](); $input.site[advanced ? 'show' : 'hide']();
viewInputs.forEach(function(key) { viewInputs.forEach(function(key) {
$input[key][ $input[key][