context: function SetSaveAndPublishUI(urlstring){  // Associate the "save" keybinding with Save for local files,   //   or with Publish for remote files  var scheme = GetScheme(urlstring);  var menuItem1;  var menuItem2;  var saveButton = document.getElementById("saveButton");  var publishButton = document.getElementById("publishButton");  var command;  if (!scheme || scheme == "file")  {    // Editing a new or local file    menuItem1 = document.getElementById("publishMenuitem");    menuItem2 = document.getElementById("saveMenuitem");    command = "cmd_save";    // Hide "Publish". Show "Save" toolbar and menu items    SetElementHidden(publishButton, true);    SetElementHidden(saveButton, false);  }  else  {    // Editing a remote file    menuItem1 = document.getElementById("saveMenuitem");    menuItem2 = document.getElementById("publishMenuitem");    command = "cmd_publish";    // Hide "Save", show "Publish" toolbar and menuitems    SetElementHidden(saveButton, true);    SetElementHidden(publishButton, false);  }//  Use this to hide "Save" menuitem if editing remote, Hide "Publish" if editing local//  SetElementHidden(menuItem1, true);//  SetElementHidden(menuItem2, false);  var key = document.getElementById("savekb");  if (key && command)    key.setAttribute("observes", command);  if (menuItem1 && menuItem2)  {    menuItem1.removeAttribute("key");    menuItem2.setAttribute("key","savekb");  }  // Be sure enabled state of toolbar button is correct  goUpdateCommand(command);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/24df67f6ecb06c18817a2eede94862fed0015765/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js