rem: debug("num_selected="+num_selected); 
context: function enable_buttons_for_other_panels(){  var add_button = document.getElementById('add_button');  var preview_button = document.getElementById('preview_button');  var all_panels = document.getElementById('other-panels');  var num_selected = 0;  // Only count non-folders as selected for button enabling  for (var ii=0; ii<all_panels.selectedItems.length; ii++) {    debug("counting selected items...");    var node = all_panels.selectedItems[ii];    if (node.getAttribute('container') != 'true') {      num_selected++;    }  }  debug("num_selected="+num_selected);  if (num_selected > 0) {    add_button.removeAttribute('disabled');    preview_button.removeAttribute('disabled');  }  else {    add_button.setAttribute('disabled','true');    preview_button.setAttribute('disabled','true');  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a376ddc0531725ad80728692bef9c8ab8b17636c/customize.js/buggy/suite/common/sidebar/customize.js