cosmetic changes
This commit is contained in:
parent
b40b01dd3a
commit
db8e48772f
1 changed files with 7 additions and 4 deletions
|
@ -3,11 +3,12 @@
|
||||||
|
|
||||||
pandora.ui.deleteDocumentDialog = function(files, callback) {
|
pandora.ui.deleteDocumentDialog = function(files, callback) {
|
||||||
|
|
||||||
var that = pandora.ui.iconDialog({
|
var string = files.length == 1 ? 'Document' : 'Documents',
|
||||||
|
that = pandora.ui.iconDialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
id: 'keep',
|
id: 'keep',
|
||||||
title: files.length == 1 ? Ox._('Keep Document') : Ox._('Keep Documents')
|
title: Ox._('Keep ' + string)
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
that.close();
|
that.close();
|
||||||
|
@ -15,7 +16,7 @@ pandora.ui.deleteDocumentDialog = function(files, callback) {
|
||||||
}),
|
}),
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
id: 'delete',
|
id: 'delete',
|
||||||
title: files.length == 1 ? Ox._('Delete Document') : Ox._('Delete Documents')
|
title: Ox._('Delete ' + string)
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
that.close();
|
that.close();
|
||||||
|
@ -29,7 +30,9 @@ pandora.ui.deleteDocumentDialog = function(files, callback) {
|
||||||
? Ox._('Are you sure you want to delete the document "{0}"?', [files[0]])
|
? Ox._('Are you sure you want to delete the document "{0}"?', [files[0]])
|
||||||
: Ox._('Are you sure you want to delete {0} documents?', [files.length]),
|
: Ox._('Are you sure you want to delete {0} documents?', [files.length]),
|
||||||
keys: {enter: 'delete', escape: 'keep'},
|
keys: {enter: 'delete', escape: 'keep'},
|
||||||
title: files.length == 1 ? Ox._('Delete Document') : Ox._('Delete {0} Documents', [files.length])
|
title: files.length == 1
|
||||||
|
? Ox._('Delete Document')
|
||||||
|
: Ox._('Delete {0} Documents', [files.length])
|
||||||
});
|
});
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
Loading…
Reference in a new issue