diff --git a/mozilla/mailnews/base/resources/content/mailWindowOverlay.js b/mozilla/mailnews/base/resources/content/mailWindowOverlay.js index 918516b0c0b..48e1730dc83 100644 --- a/mozilla/mailnews/base/resources/content/mailWindowOverlay.js +++ b/mozilla/mailnews/base/resources/content/mailWindowOverlay.js @@ -588,21 +588,8 @@ function InitMessageMark() function UpdateJunkToolbarButton() { - try - { - var junkButton = document.getElementById("button-junk"); - if (SelectedMessagesAreJunk()) - { - junkButton.label = junkButton.getAttribute('notjunk_label'); - junkButton.setAttribute('tooltiptext', junkButton.getAttribute('notjunk_tooltiptext')); - } - else - { - junkButton.label = junkButton.getAttribute('junk_label'); - junkButton.setAttribute('tooltiptext', junkButton.getAttribute('junk_tooltiptext')); - } - } - catch(e) {} + var junkButtonDeck = document.getElementById("deck-junk"); + junkButtonDeck.selectedIndex = SelectedMessagesAreJunk() ? 1 : 0; } function UpdateDeleteCommand() diff --git a/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul b/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul index 7aa13f2a5e7..51cbad2edc3 100644 --- a/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul +++ b/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul @@ -1747,16 +1747,18 @@ + + + - + +