rem: if ( print_selection_radio_enabled) { 
add: if (print_selection_radio_enabled) { 
context: function loadDialog(){  var print_tofile        = false;  var print_copies        = 1;  var print_file          = default_file;  var print_selection_radio_enabled = false;  var print_frametype     = gPrintOptInterface.kSelectedFrame;  var print_howToEnableUI = gPrintOptInterface.kFrameEnableNone;  try {    printService = Components.classes["@mozilla.org/gfx/printoptions;1"];    if (printService) {      printService = printService.getService();      if (printService) {        printService = printService.QueryInterface(Components.interfaces.nsIPrintOptions);      }    }  } catch(e) {}  if (printService) {    print_copies    = printService.numCopies;    print_file      = printService.toFileName;    print_tofile    = printService.printToFile;    print_frametype = printService.printFrameType;    print_howToEnableUI = printService.howToEnableFrameUI;    print_selection_radio_enabled = printService.GetPrintOptions(gPrintOptInterface.kPrintOptionsEnableSelectionRB);  }  if (doDebug) {    dump("toFileName    "+print_file+"\n");    dump("printToFile   "+print_tofile+"\n");    dump("printToFile   "+print_tofile+"\n");    dump("print_frame   "+print_frametype+"\n");    dump("print_howToEnableUI "+print_howToEnableUI+"\n");    dump("selection_radio_enabled "+print_selection_radio_enabled+"\n");  }  if (print_file == "") {    print_file = default_file;  }  if (print_tofile) {    dialog.destGroup.selectedItem = dialog.fileRadio;    doPrintToFile( true );  } else {    dialog.destGroup.selectedItem = dialog.printerRadio;    doPrintToFile( false );  }  dialog.printrangeGroup.selectedItem = dialog.allpagesRadio;  if ( print_selection_radio_enabled) {    dialog.selectionRadio.removeAttribute("disabled");  } else {    dialog.selectionRadio.setAttribute("disabled","true" );  }  doPrintRange(dialog.rangeRadio.selected);  dialog.frompageInput.value  = 1;  dialog.topageInput.value    = 1;  dialog.numCopiesInput.value = 1;  dialog.fileInput.value   = print_file;  getPrinters();  if (doDebug) {    dump("print_howToEnableUI: "+print_howToEnableUI+"\n");  }  // print frame  if (print_howToEnableUI == gPrintOptInterface.kFrameEnableAll) {    dialog.aslaidoutRadio.removeAttribute("disabled");    dialog.selectedframeRadio.removeAttribute("disabled");    dialog.eachframesepRadio.removeAttribute("disabled");    dialog.printframeGroupLabel.removeAttribute("disabled");    // initialize radio group    dialog.printframeGroup.selectedItem = dialog.selectedframeRadio;  } else if (print_howToEnableUI == gPrintOptInterface.kFrameEnableAsIsAndEach) {    dialog.aslaidoutRadio.removeAttribute("disabled");       //enable    dialog.selectedframeRadio.setAttribute("disabled","true" ); // disable    dialog.eachframesepRadio.removeAttribute("disabled");       // enable    dialog.printframeGroupLabel.removeAttribute("disabled");    // enable    // initialize    dialog.printframeGroup.selectedItem = dialog.eachframesepRadio;  } else {    dialog.aslaidoutRadio.setAttribute("disabled","true" );    dialog.selectedframeRadio.setAttribute("disabled","true" );    dialog.eachframesepRadio.setAttribute("disabled","true" );    dialog.printframeGroupLabel.setAttribute("disabled","true" );  }  dialog.printButton.label = dialog.printName.getAttribute("label");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js