Bug 300001: JS errors and strict warnings in dialog "Download actions"; patch by Henrik Skupin <hskupin@gmail.com>, r/a=bsmedberg

This commit is contained in:
mnyromyr%tprac.de 2005-07-16 14:34:10 +00:00
Родитель 3981a08303
Коммит 6d2bf21923
2 изменённых файлов: 4 добавлений и 5 удалений

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

@ -250,6 +250,5 @@ var gChangeActionDialog = {
return true;
}
return false;
},
}
};

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

@ -468,8 +468,8 @@ var gDownloadActionsWindow = {
var title = this._bundle.getString("removeTitle" + (selection.count > 1 ? "Multiple" : "Single"));
var message = this._bundle.getString("removeMessage" + (selection.count > 1 ? "Multiple" : "Single"));
var button = this._bundle.getString("removeButton" + (selection.count > 1 ? "Multiple" : "Single"));
rv = promptService.confirmEx(window, title, message, flags, button,
null, null, null, { value: 0 });
var rv = promptService.confirmEx(window, title, message, flags, button,
null, null, null, { value: 0 });
if (rv != 0)
return;
@ -755,7 +755,7 @@ var gDownloadActionsWindow = {
// Restore selection
this._view.selection.clearSelection();
for (i = 0; i < this._lastSelectedRanges.length; ++i) {
for (var i = 0; i < this._lastSelectedRanges.length; ++i) {
var range = this._lastSelectedRanges[i];
this._view.selection.rangedSelect(range.min, range.max, true);
}