summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbaranovich@yandex-team.ru <baranovich@yandex-team.ru@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-04 05:36:37 +0000
committerbaranovich@yandex-team.ru <baranovich@yandex-team.ru@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-04 05:36:37 +0000
commite386dc68c48e6a98f9e680b7413294139030f0a8 (patch)
treed0c10ea53e0d5bdd92b14237322119164027cd15
parentb1d5b19e199f54ac1a20046c348060c6ab7c6571 (diff)
downloadchromium_src-e386dc68c48e6a98f9e680b7413294139030f0a8.zip
chromium_src-e386dc68c48e6a98f9e680b7413294139030f0a8.tar.gz
chromium_src-e386dc68c48e6a98f9e680b7413294139030f0a8.tar.bz2
Remove interrupted class from download on webui if it's not interrupted
R=benjhayden@chromium.org BUG= TEST=Begin download, interrupt it, and then resume. Its description on webui (about:downloads) should stop being red. Review URL: https://codereview.chromium.org/184843003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254675 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/downloads/downloads.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js
index a024866..f979372 100644
--- a/chrome/browser/resources/downloads/downloads.js
+++ b/chrome/browser/resources/downloads/downloads.js
@@ -472,8 +472,11 @@ Download.prototype.update = function(download) {
} else if (this.nodeFileName_.textContent != this.fileName_) {
this.nodeFileName_.textContent = this.fileName_;
}
- if (this.state_ == Download.States.INTERRUPTED)
+ if (this.state_ == Download.States.INTERRUPTED) {
this.nodeFileName_.classList.add('interrupted');
+ } else if (this.nodeFileName_.classList.contains('interrupted')) {
+ this.nodeFileName_.classList.remove('interrupted');
+ }
showInline(this.nodeFileLink_,
this.state_ == Download.States.COMPLETE &&