diff options
-rw-r--r-- | chrome/browser/browser_resources.grd | 2 | ||||
-rw-r--r-- | chrome/browser/resources/filebrowse.html | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd index 22d06ba..6980e6d 100644 --- a/chrome/browser/browser_resources.grd +++ b/chrome/browser/browser_resources.grd @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- This comment is only here because changes to resources are not picked up -without changes to the corresponding grd file. tea --> +without changes to the corresponding grd file. tet --> <grit latest_public_release="0" current_release="1"> <outputs> <output filename="grit/browser_resources.h" type="rc_header"> diff --git a/chrome/browser/resources/filebrowse.html b/chrome/browser/resources/filebrowse.html index 095bb2d..2bcabe7 100644 --- a/chrome/browser/resources/filebrowse.html +++ b/chrome/browser/resources/filebrowse.html @@ -963,15 +963,23 @@ function downloadUpdated(results) { } } else { + var status = undefined; + var pause = undefined; for (var x = 0; x < element.children.length; x++) { if (element.children[x].className == 'downloadstatus') { var child = element.children[x]; - element.removeChild(child); + status = child; } else if (element.children[x].className == 'downloadpause') { var child = element.children[x]; - element.removeChild(child); + pause = child; } } + if (status) { + element.removeChild(status); + } + if (pause) { + element.removeChild(pause); + } element.className = 'filebrowserow'; } } else { |