OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html i18n-values="dir:textdirection;"> | 2 <html i18n-values="dir:textdirection;"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title i18n-content="title"></title> | 5 <title i18n-content="title"></title> |
6 <link rel="icon" href="../../app/theme/downloads_favicon.png"> | 6 <link rel="icon" href="../../app/theme/downloads_favicon.png"> |
7 <style> | 7 <style> |
8 body { | 8 body { |
9 background-color: white; | 9 background-color: white; |
10 color: black; | 10 color: black; |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 } | 578 } |
579 showInline(this.controlPause_, this.state_ == Download.States.IN_PROGRESS); | 579 showInline(this.controlPause_, this.state_ == Download.States.IN_PROGRESS); |
580 showInline(this.controlResume_, this.state_ == Download.States.PAUSED); | 580 showInline(this.controlResume_, this.state_ == Download.States.PAUSED); |
581 var showCancel = this.state_ == Download.States.IN_PROGRESS || | 581 var showCancel = this.state_ == Download.States.IN_PROGRESS || |
582 this.state_ == Download.States.PAUSED; | 582 this.state_ == Download.States.PAUSED; |
583 showInline(this.controlCancel_, showCancel); | 583 showInline(this.controlCancel_, showCancel); |
584 showInline(this.controlRemove_, !showCancel); | 584 showInline(this.controlRemove_, !showCancel); |
585 | 585 |
586 this.nodeSince_.innerHTML = this.since_; | 586 this.nodeSince_.innerHTML = this.since_; |
587 this.nodeDate_.innerHTML = this.date_; | 587 this.nodeDate_.innerHTML = this.date_; |
588 this.nodeURL_.textContent = this.url_; | 588 // Don't unnecessarily update the url, as doing so will remove any |
| 589 // text selection the user has started (http://crbug.com/44982). |
| 590 if (this.nodeURL_.textContent != this.url_) |
| 591 this.nodeURL_.textContent = this.url_; |
589 this.nodeStatus_.innerHTML = this.getStatusText_(); | 592 this.nodeStatus_.innerHTML = this.getStatusText_(); |
590 | 593 |
591 this.danger_.style.display = 'none'; | 594 this.danger_.style.display = 'none'; |
592 this.safe_.style.display = 'block'; | 595 this.safe_.style.display = 'block'; |
593 } | 596 } |
594 } | 597 } |
595 | 598 |
596 /** | 599 /** |
597 * Removes applicable bits from the DOM in preparation for deletion. | 600 * Removes applicable bits from the DOM in preparation for deletion. |
598 */ | 601 */ |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 <div id="downloads-summary"> | 775 <div id="downloads-summary"> |
773 <span id="downloads-summary-text" i18n-content="downloads">Downloads</span> | 776 <span id="downloads-summary-text" i18n-content="downloads">Downloads</span> |
774 <a id="clear-all" href="" onclick="clearAll();" i18n-content="clear_all">Cle
ar All</a> | 777 <a id="clear-all" href="" onclick="clearAll();" i18n-content="clear_all">Cle
ar All</a> |
775 </div> | 778 </div> |
776 <div id="downloads-display"></div> | 779 <div id="downloads-display"></div> |
777 </div> | 780 </div> |
778 <div class="footer"> | 781 <div class="footer"> |
779 </div> | 782 </div> |
780 </body> | 783 </body> |
781 </html> | 784 </html> |
OLD | NEW |