rem: getSelectedSlot(); if (!selected_slot) { ClearInfoList(); return; }   var selected_token = selected_slot.getToken(); if (selected_token != null) { toggle="false"; if (selected_token.needsLogin()) { pw_toggle = "false"; if (selected_token.isLoggedIn()) { login_toggle = "true"; logout_toggle = "false"; } else { login_toggle = "false"; logout_toggle = "true"; 
add: var unload_toggle = "true"; getSelectedItem(); if (selected_module) { var unload_toggle = "false"; showModuleInfo(); } else if (selected_slot) {   var selected_token = selected_slot.getToken(); if (selected_token != null) { if (selected_token.needsLogin()) { pw_toggle = "false"; if (selected_token.isLoggedIn()) { logout_toggle = "false"; } else { login_toggle = "false"; } 
context: function enableButtons(){  var toggle = "true";  var login_toggle = "true";  var logout_toggle = "true";  var pw_toggle = "true";  getSelectedSlot();  if (!selected_slot) {    ClearInfoList();    return;  }  // here's the workaround - login functions are all with token,  // so grab the token type  var selected_token = selected_slot.getToken();  if (selected_token != null) {    toggle="false";    if (selected_token.needsLogin()) {      pw_toggle = "false";      if (selected_token.isLoggedIn()) {        login_toggle = "true";        logout_toggle = "false";      } else {        login_toggle = "false";        logout_toggle = "true";      }    }  }  var thebutton = document.getElementById('change_slotname_button');  // not implemented  //thebutton.setAttribute("disabled", toggle);  thebutton.setAttribute("disabled", "true");  thebutton = document.getElementById('login_button');  thebutton.setAttribute("disabled", login_toggle);  thebutton = document.getElementById('logout_button');  thebutton.setAttribute("disabled", logout_toggle);  thebutton = document.getElementById('change_pw_button');  // not implemented  //thebutton.setAttribute("disabled", pw_toggle);  thebutton.setAttribute("disabled", "true");  showSlotInfo();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/65c061212d2e3f9108776361db9b5d7f1f82b6b4/device_manager.js/clean/security/manager/pki/resources/content/device_manager.js