Fix filter reporting in XP filepicker, and thus fix distinction between HTML-only and complete web page saving. b=116418 r=bzbarsky sr=brendan

This commit is contained in:
dbaron%fas.harvard.edu 2002-01-16 00:41:49 +00:00
Родитель db566a1e35
Коммит ad0f1eb6a9
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -300,10 +300,10 @@ function selectOnOK()
retvals.file = file;
retvals.buttonStatus = ret;
if (ret == nsIFilePicker.returnCancel)
return false;
else
return true;
var filterMenuList = document.getElementById("filterMenuList");
retvals.filterIndex = filterMenuList.selectedIndex;
return (ret != nsIFilePicker.returnCancel);
}
function onCancel()

Просмотреть файл

@ -102,7 +102,7 @@ nsFilePicker.prototype = {
/* attribute long filterIndex; */
set filterIndex(a) { this.mFilterIndex = a; },
get filterInrex() { return this.mFilterIndex; },
get filterIndex() { return this.mFilterIndex; },
/* methods */
init: function(parent, title, mode) {
@ -185,7 +185,7 @@ nsFilePicker.prototype = {
"chrome,modal,titlebar,resizable=yes,dependent=yes",
o);
this.mFile = o.retvals.file;
this.mFilterIndex = o.retvals.filterindex;
this.mFilterIndex = o.retvals.filterIndex;
lastDirectory = o.retvals.directory;
return o.retvals.buttonStatus;
} catch(ex) { dump("unable to open file picker\n" + ex + "\n"); }

Просмотреть файл

@ -102,7 +102,7 @@ nsFilePicker.prototype = {
/* attribute long filterIndex; */
set filterIndex(a) { this.mFilterIndex = a; },
get filterInrex() { return this.mFilterIndex; },
get filterIndex() { return this.mFilterIndex; },
/* methods */
init: function(parent, title, mode) {
@ -185,7 +185,7 @@ nsFilePicker.prototype = {
"chrome,modal,titlebar,resizable=yes,dependent=yes",
o);
this.mFile = o.retvals.file;
this.mFilterIndex = o.retvals.filterindex;
this.mFilterIndex = o.retvals.filterIndex;
lastDirectory = o.retvals.directory;
return o.retvals.buttonStatus;
} catch(ex) { dump("unable to open file picker\n" + ex + "\n"); }