rem: for(var i=0; i < symbol.length; i++) AppendStringToMenulist(LatinM , String.fromCharCode(symbol[i])); if(oldM < symbol.length) LatinM.selectedIndex = oldM; else LatinM.selectedIndex = symbol.length; break; 
add: for(var i=0; i < symbol.length; i++) AppendStringToMenulist(LatinM , String.fromCharCode(symbol[i]));  if(indexM_S < symbol.length) indexM = indexM_S; else indexM = symbol.length - 1; indexM_S = indexM; break; 
context: function UpdateLatinM(){  ClearMenulist(LatinM);  switch(category)  {    case "AccentUpper": // Uppercase Diacritical     for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++)       AppendStringToMenulist(LatinM ,              String.fromCharCode(upper[LatinL.selectedIndex][basic]));     if(oldM < upper[LatinL.selectedIndex].length)        LatinM.selectedIndex = oldM;      else         LatinM.selectedIndex = upper[LatinL.selectedIndex].length;     break;    case "AccentLower": // Lowercase Diacritical     for(var basic=0; basic < lower[LatinL.selectedIndex].length; basic++)       AppendStringToMenulist(LatinM ,              String.fromCharCode(lower[LatinL.selectedIndex][basic]));     if(oldM < lower[LatinL.selectedIndex].length)        LatinM.selectedIndex = oldM;      else         LatinM.selectedIndex = lower[LatinL.selectedIndex].length;     break;    case "Upper": // Uppercase w/o Diacritical     for(var i=0; i < otherupper.length; i++)       AppendStringToMenulist(LatinM, String.fromCharCode(otherupper[i]));     if(oldM < otherupper.length)        LatinM.selectedIndex = oldL;      else         LatinM.selectedIndex = otherupper.length;     break;    case "Lower": // Lowercase w/o Diacritical     for(var i=0; i < otherlower.length; i++)       AppendStringToMenulist(LatinM , String.fromCharCode(otherlower[i]));     if(oldL < otherlower.length)        LatinM.selectedIndex = oldM;      else         LatinM.selectedIndex = otherlower.length;     break;    case "Symbol": // Symbol     for(var i=0; i < symbol.length; i++)       AppendStringToMenulist(LatinM , String.fromCharCode(symbol[i]));     if(oldM < symbol.length)        LatinM.selectedIndex = oldM;      else         LatinM.selectedIndex = symbol.length;     break;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c89a5c2fb5327db8dd57fa9fa117332a28137827/EdInsertChars.js/buggy/editor/ui/dialogs/content/EdInsertChars.js