Bug 392841 - With a download in progress, selection after deletion of a Completed item should go down.
p=Edward Lee (Mardak) <edilee@gmail.com> r=sdwilsh git-svn-id: svn://10.0.0.236/trunk@233766 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e624db26f8
commit
b80d1bca3f
@ -225,9 +225,9 @@ function resumeDownload(aDownload)
|
||||
function removeDownload(aDownload)
|
||||
{
|
||||
gDownloadManager.removeDownload(aDownload.getAttribute("dlid"));
|
||||
var newIndex = Math.max(gDownloadsView.selectedIndex - 1, 0);
|
||||
let index = gDownloadsView.selectedIndex;
|
||||
gDownloadsView.removeChild(aDownload);
|
||||
gDownloadsView.selectedIndex = newIndex;
|
||||
gDownloadsView.selectedIndex = Math.min(index, gDownloadsView.itemCount - 1);
|
||||
}
|
||||
|
||||
function showDownload(aDownload)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user