Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: chrome/browser/resources/history.html

Issue 155892: Make Delete history for this day not use a link. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/history_favicon.png"> 6 <link rel="icon" href="../../app/theme/history_favicon.png">
7 <script src="local_strings.js"></script> 7 <script src="local_strings.js"></script>
8 <script> 8 <script>
9 /////////////////////////////////////////////////////////////////////////////// 9 ///////////////////////////////////////////////////////////////////////////////
10 // Globals: 10 // Globals:
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 491
492 if ((i == 0 && page.continued) || !page.continued) { 492 if ((i == 0 && page.continued) || !page.continued) {
493 var day = createElementWithClassName('div', 'day'); 493 var day = createElementWithClassName('div', 'day');
494 day.appendChild(document.createTextNode(page.dateRelativeDay)); 494 day.appendChild(document.createTextNode(page.dateRelativeDay));
495 495
496 if (i == 0 && page.continued) { 496 if (i == 0 && page.continued) {
497 day.appendChild(document.createTextNode(' ' + 497 day.appendChild(document.createTextNode(' ' +
498 localStrings.getString('cont'))); 498 localStrings.getString('cont')));
499 } 499 }
500 500
501 var link = createElementWithClassName('a', 'delete-day'); 501 var link = createElementWithClassName('button', 'delete-day');
502 link.href = '#';
503 link.time = page.time.toString(); 502 link.time = page.time.toString();
504 link.onclick = deleteDay; 503 link.onclick = deleteDay;
505 link.appendChild( 504 link.appendChild(
506 document.createTextNode(localStrings.getString("deleteday"))); 505 document.createTextNode(localStrings.getString("deleteday")));
507 506
508 day.appendChild(link); 507 day.appendChild(link);
509 this.resultDiv_.appendChild(day); 508 this.resultDiv_.appendChild(day);
510 } else if (lastTime - thisTime > BROWSING_GAP_TIME) { 509 } else if (lastTime - thisTime > BROWSING_GAP_TIME) {
511 this.resultDiv_.appendChild(createElementWithClassName('div', 'gap')); 510 this.resultDiv_.appendChild(createElementWithClassName('div', 'gap'));
512 } 511 }
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 } 816 }
818 #results-display { 817 #results-display {
819 max-width:740px; 818 max-width:740px;
820 } 819 }
821 .day { 820 .day {
822 margin-top:18px; 821 margin-top:18px;
823 padding:0px 3px; 822 padding:0px 3px;
824 display:inline-block; 823 display:inline-block;
825 } 824 }
826 .delete-day { 825 .delete-day {
826 display: inline;
827 -webkit-appearance: none;
828 background: none;
829 border: 0;
830 color: blue; /* -webkit-link makes it purple :'( */
831 cursor: pointer;
832 text-decoration: underline;
827 padding:0px 9px; 833 padding:0px 9px;
828 display:inline-block; 834 display:inline-block;
829 } 835 }
830 .gap { 836 .gap {
831 margin-left:18px; 837 margin-left:18px;
832 width:15px; 838 width:15px;
833 border-right:1px solid #ddd; 839 border-right:1px solid #ddd;
834 height:14px; 840 height:14px;
835 } 841 }
836 .entry { 842 .entry {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 </div> 918 </div>
913 <div class="main"> 919 <div class="main">
914 <div id="results-summary"></div> 920 <div id="results-summary"></div>
915 <div id="results-display"></div> 921 <div id="results-display"></div>
916 <div id="results-pagination"></div> 922 <div id="results-pagination"></div>
917 </div> 923 </div>
918 <div class="footer"> 924 <div class="footer">
919 </div> 925 </div>
920 </body> 926 </body>
921 </html> 927 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698