add: useSmallIcons.checked = false; } 
context: function buildDialog(){  var toolbar = window.opener.document.getElementById("nav-bar");  var useSmallIcons = document.getElementById("smallicons");  var iconSize = toolbar.getAttribute("iconsize");  useSmallIcons.checked = (iconSize == "small");  var modeList = document.getElementById("modelist");  var modeValue = toolbar.getAttribute("mode");  if (!modeValue)    modeValue = "full";  modeList.value = modeValue;  if (modeValue == "text")    useSmallIcons.disabled = true;    var cloneToolbarBox = document.getElementById("cloned-bar-container");  var paletteBox = document.getElementById("palette-box");  var currentSet = toolbar.getAttribute("currentset");  if (!currentSet)    currentSet = toolbar.getAttribute("defaultset");  currentSet = currentSet.split(",");  // Create a new toolbar that will model the one the user is trying to customize.  // We won't just cloneNode() because we want to wrap each element on the toolbar in a  // <toolbarpaletteitem/>, to prevent them from getting events (so they aren't styled on  // hover, etc.) and to allow us to style them in the new nsITheme world.  var newToolbar = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",                                            "toolbar");  newToolbar.id = "cloneToolbar";    if (useSmallIcons.checked)    newToolbar.setAttribute("iconsize", "small");  newToolbar.setAttribute("mode", modeValue);  // Walk through and manually clone the children of the to-be-customized toolbar.  // Make sure all buttons look enabled (and that textboxes are disabled).  var toolbarItem = toolbar.firstChild;  while (toolbarItem) {    var newItem = toolbarItem.cloneNode(true);    addItemToToolbar(newItem, newToolbar);    toolbarItem = toolbarItem.nextSibling;  }  cloneToolbarBox.appendChild(newToolbar);    // Now build up a palette of items.  buildPalette(paletteBox, toolbar, currentSet);  // Set a min height on the new toolbar so it doesn't shrink if all the buttons are removed.  newToolbar.setAttribute("minheight", newToolbar.boxObject.height);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e29a166f4bdc95ddfc8bba705820c4c1f1cbe90c/customizeToolbar.js/buggy/browser/base/content/customizeToolbar.js