avoid scroll for long document titles, closes #3140
This commit is contained in:
parent
6e8a338f8a
commit
1175e5d5bf
2 changed files with 12 additions and 5 deletions
|
@ -3,6 +3,13 @@
|
|||
pandora.ui.deleteDocumentDialog = function(files, callback) {
|
||||
|
||||
var string = Ox._(files.length == 1 ? 'Document' : 'Documents'),
|
||||
$content = Ox.Element().html(
|
||||
files.length == 1
|
||||
? Ox._('Are you sure you want to delete the document "{0}"?', [files[0].title + '.' + files[0].extension])
|
||||
: Ox._('Are you sure you want to delete {0} documents?', [files.length])
|
||||
).css({
|
||||
overflow: 'hidden',
|
||||
}),
|
||||
|
||||
that = pandora.ui.iconDialog({
|
||||
buttons: [
|
||||
|
@ -28,15 +35,12 @@ pandora.ui.deleteDocumentDialog = function(files, callback) {
|
|||
}
|
||||
})
|
||||
],
|
||||
content: files.length == 1
|
||||
? Ox._('Are you sure you want to delete the document "{0}"?', [files[0].title + '.' + files[0].extension])
|
||||
: Ox._('Are you sure you want to delete {0} documents?', [files.length]),
|
||||
content: $content,
|
||||
keys: {enter: 'delete', escape: 'keep'},
|
||||
title: files.length == 1
|
||||
? Ox._('Delete {0}', [string])
|
||||
: Ox._('Delete {0} Documents', [files.length])
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
@ -18,7 +18,10 @@ pandora.ui.uploadDocumentDialog = function(options, callback) {
|
|||
|
||||
$errorDialog,
|
||||
|
||||
$content = Ox.Element().css({margin: '16px'}),
|
||||
$content = Ox.Element().css({
|
||||
margin: '16px',
|
||||
overflow: 'hidden'
|
||||
}),
|
||||
|
||||
$text = $('<div>')
|
||||
.html(Ox._('Uploading {0}', [files[0].name]))
|
||||
|
|
Loading…
Reference in a new issue