make buttons i18n friendly and a better experience

This commit is contained in:
John McLear 2015-03-31 13:57:18 +01:00
parent 35948989b3
commit ef38bcad9f
2 changed files with 2 additions and 1 deletions

View file

@ -99,7 +99,7 @@ _.extend(Button.prototype, {
};
return tag("li", liAttributes,
tag("a", { "class": this.grouping, "data-l10n-id": this.attributes.localizationId },
tag("button", { "class": " "+ this.attributes.class, "title": this.attributes.command })
tag("button", { "class": " "+ this.attributes.class, "alt": this.attributes.command, "data-l10n-id": this.attributes.localizationId })
)
);
}