Skip to content

Commit 6d2a008

Browse files
committed
Merge pull request #146 from lukeis/patch-2
openSaveAsDialog option for file name is defaultName, not defaultFile. ...
2 parents df889fd + cde35a6 commit 6d2a008

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/helpers/source_concatenator/Ti.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5820,7 +5820,7 @@ openFolderChooserDialog: function(callback, options){},
58205820
* * path: path to where the dialog should be opened at
58215821
* * types: array of file extensions that are allowed to be selected
58225822
* * multiple: if true, allow user to select more than one file [default: true]
5823-
* * defaultFile: default name to be used for saving
5823+
* * defaultName: default name to be used for saving
58245824
58255825
* @param {method} callback a callback function to fire after the user closes the dialog
58265826
* @param {object} options (optional) additional options for the dialog

doc/source/API/Ti.UI.UserWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ openFolderChooserDialog: function(callback, options){},
681681
* * path: path to where the dialog should be opened at
682682
* * types: array of file extensions that are allowed to be selected
683683
* * multiple: if true, allow user to select more than one file [default: true]
684-
* * defaultFile: default name to be used for saving
684+
* * defaultName: default name to be used for saving
685685
686686
* @param {method} callback a callback function to fire after the user closes the dialog
687687
* @param {object} options (optional) additional options for the dialog

src/modules/ui/user_window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ void UserWindow::ReadChooserDialogObject(
12851285
// {
12861286
// multiple:true,
12871287
// title: "Select file to delete...",
1288-
// defaultFile: "autoexec.bat",
1288+
// defaultName: "autoexec.bat",
12891289
// path: "C:\"
12901290
// types:['js','html']
12911291
// });

0 commit comments

Comments
 (0)