File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/client/javascript/dialogs Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 39
39
*
40
40
* @param {Object } args An object with arguments
41
41
* @param {String } args.title Dialog title
42
- * @param {String } args.title Dialog title
43
42
* @param {String } [args.type=open] Dialog type (alternative=save)
44
43
* @param {Boolean } [args.multiple=false] Multiple file selection
45
44
* @param {OSjs.VFS.File } [args.file] Current file
88
87
}
89
88
}
90
89
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' ;
93
92
94
93
DialogWindow . apply ( this , [ 'FileDialog' , {
95
94
title : title ,
You can’t perform that action at this time.
0 commit comments