mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
108592 - js error in filepicker. r=ben sr=hewitt
This commit is contained in:
parent
9b4f2e5cd1
commit
42dcacc507
@ -413,11 +413,11 @@ function getOKAction(file) {
|
||||
var buttonLabel;
|
||||
|
||||
if (file && file.isDirectory() && filePickerMode != nsIFilePicker.modeGetFolder) {
|
||||
document.documentElement.setAttribute("ondialogaccept", "openOnOK");
|
||||
document.documentElement.setAttribute("ondialogaccept", "return openOnOK();");
|
||||
buttonLabel = gFilePickerBundle.getString("openButtonLabel");
|
||||
}
|
||||
else {
|
||||
document.documentElement.setAttribute("ondialogaccept", "selectOnOK");
|
||||
document.documentElement.setAttribute("ondialogaccept", "return selectOnOK();");
|
||||
switch(filePickerMode) {
|
||||
case nsIFilePicker.modeGetFolder:
|
||||
buttonLabel = gFilePickerBundle.getString("selectFolderButtonLabel");
|
||||
|
Loading…
Reference in New Issue
Block a user