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

Unified Diff: include.postload.js

Issue 5896265296510976: Issue 1609 - Handle the case of no selectors in "Block Element" (Closed)
Patch Set: Created Nov. 26, 2014, 9:49 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.postload.js
===================================================================
--- a/include.postload.js
+++ b/include.postload.js
@@ -457,7 +457,8 @@
clickHide_showDialog(e.clientX, e.clientY, clickHideFilters);
// Highlight the elements specified by selector in yellow
- highlightElements(selectorList.join(","));
+ if (selectorList.length > 0)
+ highlightElements(selectorList.join(","));
// Now, actually highlight the element the user clicked on in red
highlightElement(currentElement, "#fd1708", "#f6a1b5");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld