Bug 623825 - Remove 'Options' button for persona themes [r=mfinkle]
--- a/mobile/chrome/content/bindings/extensions.xml
+++ b/mobile/chrome/content/bindings/extensions.xml
@@ -58,16 +58,21 @@
let appDisabled = this.getAttribute("appDisabled");
if (appDisabled == "true")
document.getAnonymousElementByAttribute(this, "anonid", "enable-button").setAttribute("disabled", "true");
let isReadOnly = this.getAttribute("isReadonly");
if (isReadOnly == "true")
document.getAnonymousElementByAttribute(this, "anonid", "uninstall-button").setAttribute("disabled", "true");
+
+ // no options for themes
+ // use the unlocalized property, not the typeLabel attribute
+ if (this.addon.type == "theme")
+ document.getAnonymousElementByAttribute(this, "anonid", "options-button").hidden = true;
]]>
</constructor>
<method name="hideOptions">
<body>
<![CDATA[
let box = document.getAnonymousElementByAttribute(this, "anonid", "options-box");
if (!box.collapsed)