diff --git a/static/js/deleteDocumentDialog.js b/static/js/deleteDocumentDialog.js index 05d8f55e..f8dabbe4 100644 --- a/static/js/deleteDocumentDialog.js +++ b/static/js/deleteDocumentDialog.js @@ -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; }; diff --git a/static/js/uploadDocumentDialog.js b/static/js/uploadDocumentDialog.js index 4672e0af..5a9193ca 100644 --- a/static/js/uploadDocumentDialog.js +++ b/static/js/uploadDocumentDialog.js @@ -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 = $('
') .html(Ox._('Uploading {0}', [files[0].name]))