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

Unified Diff: chrome/content/ui/composer.js

Issue 29333265: Issue 3478 - Hide genericblock and generichide from the composer (Closed)
Patch Set: Created Jan. 6, 2016, 3:32 p.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: chrome/content/ui/composer.js
===================================================================
--- a/chrome/content/ui/composer.js
+++ b/chrome/content/ui/composer.js
@@ -224,7 +224,7 @@
for (let typeNode = E("typeGroup").firstChild; typeNode; typeNode = typeNode.nextSibling)
{
let value = typeNode.getAttribute("value");
- if (value == "document")
+ if (value == "document" || value == "genericblock" || value == "generichide")
Thomas Greiner 2016/01/06 15:44:51 What about "elemhide"? Similar to these options "e
Sebastian Noack 2016/01/06 15:49:33 Interestingly, "ELEMHIDE" is skipped above. So no
Thomas Greiner 2016/01/06 16:07:02 I assume that's because the composer only creates
Sebastian Noack 2016/01/06 16:15:10 I wonder whether we should expose generichide and
disableElement(typeNode, type != "whitelist", "checked", false);
if (!typeNode._defaultType)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld