Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: block.js

Issue 5838948538515456: Issue 370 - Make "Block element" hide elements for added filters (Closed)
Patch Set: Replace existing rules Created March 4, 2015, 9:10 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include.postload.js » ('j') | include.preload.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 document.getElementById("filters").focus(); 48 document.getElementById("filters").focus();
49 } 49 }
50 window.addEventListener("load", init, false); 50 window.addEventListener("load", init, false);
51 51
52 function onKeyDown(event) 52 function onKeyDown(event)
53 { 53 {
54 if (event.keyCode == 27) 54 if (event.keyCode == 27)
55 { 55 {
56 event.preventDefault(); 56 event.preventDefault();
57 closeDialog(); 57 closeDialog(false);
Wladimir Palant 2015/03/04 21:26:14 Nit: This change is unrelated. LGTM for pushing it
Sebastian Noack 2015/03/04 21:36:24 Yep, right. Leftover from earlier version of the p
58 } 58 }
59 else if (event.keyCode == 13 && !event.shiftKey && !event.ctrlKey) 59 else if (event.keyCode == 13 && !event.shiftKey && !event.ctrlKey)
60 { 60 {
61 event.preventDefault(); 61 event.preventDefault();
62 addFilters(); 62 addFilters();
63 } 63 }
64 } 64 }
65 65
66 function addFilters() 66 function addFilters()
67 { 67 {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ); 125 );
126 dragCoords = [event.screenX, event.screenY]; 126 dragCoords = [event.screenX, event.screenY];
127 } 127 }
128 } 128 }
129 129
130 function onDragEnd(event) 130 function onDragEnd(event)
131 { 131 {
132 onDrag(event); 132 onDrag(event);
133 dragCoords = null; 133 dragCoords = null;
134 } 134 }
OLDNEW
« no previous file with comments | « no previous file | include.postload.js » ('j') | include.preload.js » ('J')

Powered by Google App Engine
This is Rietveld