summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-21 23:54:55 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-21 23:54:55 +0000
commit3ae1e408f443a920b449106e45fa868ce75beae7 (patch)
treefe1e988581298157814e384862835da67935e707
parent6f3ab65893dade678a0c0b755ab0f01da5edc957 (diff)
downloadchromium_src-3ae1e408f443a920b449106e45fa868ce75beae7.zip
chromium_src-3ae1e408f443a920b449106e45fa868ce75beae7.tar.gz
chromium_src-3ae1e408f443a920b449106e45fa868ce75beae7.tar.bz2
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
-rw-r--r--chrome/browser/resources/history.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/resources/history.html b/chrome/browser/resources/history.html
index 8333a4d..fbc4122 100644
--- a/chrome/browser/resources/history.html
+++ b/chrome/browser/resources/history.html
@@ -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;
}