| Index: chrome/browser/resources/history/history.js
|
| diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
|
| index 5665b9967c67bbef4ab11388db1fbc35b24ccc59..f05b443974907c3ba86ecf613dea163600123d1b 100644
|
| --- a/chrome/browser/resources/history/history.js
|
| +++ b/chrome/browser/resources/history/history.js
|
| @@ -150,8 +150,8 @@ Visit.prototype.getResultDOM = function(propertyBag) {
|
| var useMonthDate = propertyBag.useMonthDate || false;
|
| var focusless = propertyBag.focusless || false;
|
| var node = createElementWithClassName('li', 'entry');
|
| - var time = createElementWithClassName('div', 'time');
|
| - var entryBox = createElementWithClassName('label', 'entry-box');
|
| + var time = createElementWithClassName('label', 'time');
|
| + var entryBox = createElementWithClassName('div', 'entry-box');
|
| var domain = createElementWithClassName('div', 'domain');
|
|
|
| this.id_ = this.model_.nextVisitId_++;
|
| @@ -165,6 +165,7 @@ Visit.prototype.getResultDOM = function(propertyBag) {
|
| checkbox.id = 'checkbox-' + this.id_;
|
| checkbox.time = this.date.getTime();
|
| checkbox.addEventListener('click', checkboxClicked);
|
| + time.setAttribute('for', checkbox.id);
|
| entryBox.appendChild(checkbox);
|
|
|
| if (focusless)
|
| @@ -2112,7 +2113,7 @@ function entryBoxClick(event) {
|
| return;
|
| }
|
| }
|
| - var checkbox = event.currentTarget.control;
|
| + var checkbox = $(event.currentTarget.getAttribute('for'));
|
| checkbox.checked = !checkbox.checked;
|
| handleCheckboxStateChange(checkbox, event.shiftKey);
|
| // We don't want to focus on the checkbox.
|
|
|