Index: ui/file_manager/file_manager/foreground/js/ui/combobutton.js |
diff --git a/ui/file_manager/file_manager/foreground/js/ui/combobutton.js b/ui/file_manager/file_manager/foreground/js/ui/combobutton.js |
index e6a84b4b4aaae2f26ae4d374d0074856ca260ad7..b87d69ac185307eb47da6f019b5ad45a12371453 100644 |
--- a/ui/file_manager/file_manager/foreground/js/ui/combobutton.js |
+++ b/ui/file_manager/file_manager/foreground/js/ui/combobutton.js |
@@ -62,13 +62,18 @@ cr.define('cr.ui', function() { |
this.actionNode_.textContent = defaultItem.label || ''; |
if (defaultItem.iconType) { |
+ this.actionNode_.classList.add('with-icon'); |
this.actionNode_.style.backgroundImage = ''; |
this.actionNode_.setAttribute('file-type-icon', defaultItem.iconType); |
} else if (defaultItem.iconUrl) { |
+ this.actionNode_.classList.add('with-icon'); |
this.actionNode_.style.backgroundImage = |
'url(' + defaultItem.iconUrl + ')'; |
+ this.actionNode_.removeAttribute('file-type-icon'); |
} else { |
+ this.actionNode_.classList.remove('with-icon'); |
this.actionNode_.style.backgroundImage = ''; |
+ this.actionNode_.removeAttribute('file-type-icon'); |
} |
}, |