fix pad.ma info page css

This commit is contained in:
rolux 2013-02-09 15:16:54 +05:30
parent a579b2fde0
commit 0b9ddbbc55

View file

@ -360,8 +360,8 @@ pandora.ui.infoView = function(data) {
value: data.summary || '' value: data.summary || ''
}) })
.css(css) .css(css)
// this gets duplicated in the editable, result is 4px // this gets duplicated in the editable, result is 16px
.css({marginTop: '2px'}) .css({marginTop: '8px'})
.bindEvent({ .bindEvent({
submit: function(event) { submit: function(event) {
editMetadata('summary', event.value); editMetadata('summary', event.value);
@ -382,16 +382,18 @@ pandora.ui.infoView = function(data) {
.html(formatKey('license').replace('</span>', '&nbsp;</span>')) .html(formatKey('license').replace('</span>', '&nbsp;</span>'))
.appendTo($div); .appendTo($div);
Ox.Editable({ Ox.Editable({
placeholder: formatLight('No License'), placeholder: formatLight('No License'),
tooltip: 'Doubleclick to edit', tooltip: 'Doubleclick to edit',
value: (data.license || []).join(', ') value: (data.license || []).join(', ')
}) })
.bindEvent({ // this gets duplicated in the editable, result is 16px
submit: function(event) { .css({marginTop: '8px'})
editMetadata('license', event.value); .bindEvent({
} submit: function(event) {
}) editMetadata('license', event.value);
.appendTo($div); }
})
.appendTo($div);
} else if (data.license) { } else if (data.license) {
$div.html( $div.html(
formatKey('License') formatKey('License')