Bug 491676 - Junk button in MailNews stops changing state after customizing, r+sr=Neil
authorPhilip Chee <philip.chee@gmail.com>
Tue, 19 May 2009 12:02:14 +0800
changeset 2691 6b5fe74359f4c75bfff406ea5f98d2a2bf39df4b
parent 2690 e0164ae0561f720e42aad9e334b045a8f2ae1de2
child 2692 408645ca49207b25c081f37102fbe96682c55bb0
push id2191
push userkairo@kairo.at
push dateSat, 23 May 2009 18:10:45 +0000
treeherdercomm-central@408645ca4920 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs491676
Bug 491676 - Junk button in MailNews stops changing state after customizing, r+sr=Neil
suite/mailnews/mailWindowOverlay.js
--- a/suite/mailnews/mailWindowOverlay.js
+++ b/suite/mailnews/mailWindowOverlay.js
@@ -812,17 +812,18 @@ function InitMessageMark()
      flaggedItem.setAttribute("checked", areMessagesFlagged);
 
   document.commandDispatcher.updateCommands('create-menu-mark');
 }
 
 function UpdateJunkToolbarButton()
 {
   var junkButtonDeck = document.getElementById("junk-deck");
-  junkButtonDeck.selectedIndex = SelectedMessagesAreJunk() ? 1 : 0;
+  // Wallpaper over Bug 491676 by using the attribute instead of the property.
+  junkButtonDeck.setAttribute("selectedIndex", SelectedMessagesAreJunk() ? 1 : 0);
 }
 
 function UpdateDeleteCommand()
 {
   var value = "value";
   var uri = GetFirstSelectedMessage();
   if (IsNewsMessage(uri))
     value += "News";