Skip to content

Commit 1fddd17

Browse files
committed
Dialogs: Fixed 'title' for File dialog
1 parent 54e15d7 commit 1fddd17

File tree

1 file changed

+2
-3
lines changed
  • src/client/javascript/dialogs

1 file changed

+2
-3
lines changed

src/client/javascript/dialogs/file.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
*
4040
* @param {Object} args An object with arguments
4141
* @param {String} args.title Dialog title
42-
* @param {String} args.title Dialog title
4342
* @param {String} [args.type=open] Dialog type (alternative=save)
4443
* @param {Boolean} [args.multiple=false] Multiple file selection
4544
* @param {OSjs.VFS.File} [args.file] Current file
@@ -88,8 +87,8 @@
8887
}
8988
}
9089

91-
var title = API._(args.type === 'save' ? 'DIALOG_FILE_SAVE' : 'DIALOG_FILE_OPEN');
92-
var icon = args.type === 'open' ? 'actions/document-open.png' : 'actions/documentsave-as.png';
90+
var title = args.title || API._(args.type === 'save' ? 'DIALOG_FILE_SAVE' : 'DIALOG_FILE_OPEN');
91+
var icon = args.type === 'open' ? 'actions/document-open.png' : 'actions/documentsave-as.png';
9392

9493
DialogWindow.apply(this, ['FileDialog', {
9594
title: title,

0 commit comments

Comments
 (0)