Skip to content
Snippets Groups Projects
Commit 3ae1e408 authored by arv@google.com's avatar arv@google.com
Browse files

Use a <button> that looks like a link to prevent right click and middle click.

BUG=9591

TEST=Go to the history page and make sure that "Delete history for this day"
still works and that it does not allow opening the "link" in a new window.

Review URL: http://codereview.chromium.org/155892

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21239 0039d316-1c4b-4281-b951-d872f2087c98
parent 6f3ab658
No related merge requests found
......@@ -498,8 +498,7 @@ HistoryView.prototype.displayResults_ = function() {
localStrings.getString('cont')));
}
var link = createElementWithClassName('a', 'delete-day');
link.href = '#';
var link = createElementWithClassName('button', 'delete-day');
link.time = page.time.toString();
link.onclick = deleteDay;
link.appendChild(
......@@ -824,6 +823,13 @@ function historyDeleted() {
display:inline-block;
}
.delete-day {
display: inline;
-webkit-appearance: none;
background: none;
border: 0;
color: blue; /* -webkit-link makes it purple :'( */
cursor: pointer;
text-decoration: underline;
padding:0px 9px;
display:inline-block;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment