[Australis] Bug 916953: Bookmarks star button caption in overflow panel follow-up no. 2. r=Gijs

This commit is contained in:
Mike de Boer 2014-01-22 17:50:45 +01:00
Родитель 5627b6e6fd
Коммит 9047647527
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -1328,12 +1328,12 @@ let BookmarkingUI = {
"starButtonOverflowed.label");
}
let button = this.button;
let currentLabel = aNode.getAttribute("label");
if (!this._starButtonLabel)
this._starButtonLabel = button.label;
this._starButtonLabel = currentLabel;
if (button && button.getAttribute("label") == this._starButtonLabel)
button.setAttribute("label", this._starButtonOverflowedLabel);
if (currentLabel == this._starButtonLabel)
aNode.setAttribute("label", this._starButtonOverflowedLabel);
},
onWidgetUnderflow: function(aNode, aContainer) {
@ -1346,9 +1346,8 @@ let BookmarkingUI = {
if (!this._starButtonOverflowedLabel || !this._starButtonLabel)
return;
let button = this.button;
if (button && button.getAttribute("label") == this._starButtonOverflowedLabel)
button.setAttribute("label", this._starButtonLabel);
if (aNode.getAttribute("label") == this._starButtonOverflowedLabel)
aNode.setAttribute("label", this._starButtonLabel);
},
QueryInterface: XPCOMUtils.generateQI([