зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
db566a1e35
Коммит
ad0f1eb6a9
|
@ -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"); }
|
||||
|
|
Загрузка…
Ссылка в новой задаче