add: else if (gFields[i] == "microsummaryMenuList") { if (MicrosummaryPicker.enabled) MicrosummaryPicker.init(); continue; } 
context: function Init(){  // assume the user will press cancel (only used when creating new resources)  window.arguments[1].ok = false;  // This is the set of fields that are visible in the window.  gFields     = ["name", "url", "shortcut", "description", "webpanel", "feedurl"];  // ...and this is a parallel array that contains the RDF properties  // that they are associated with.  gProperties = [RDF.GetResource(gNC_NS+"Name"),                 RDF.GetResource(gNC_NS+"URL"),                 RDF.GetResource(gNC_NS+"ShortcutURL"),                 RDF.GetResource(gNC_NS+"Description"),                 RDF.GetResource(gNC_NS+"WebPanel"),                 RDF.GetResource(gNC_NS+"FeedURL")];  var x;  // Initialize the properties panel by copying the values from the  // RDF graph into the fields on screen.  for (var i=0; i<gFields.length; ++i) {    var field = document.getElementById(gFields[i]);    var value = BMDS.GetTarget(gResource, gProperties[i], true);        if (value)      value = value.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;    if (gFields[i] == "webpanel")      field.checked = (value != undefined);    else if (value) //make sure were aren't stuffing null into any fields      field.value = value;  }  var nameNode = document.getElementById("name");  document.title = document.title.replace(/\*\*bm_title\*\*/gi, nameNode.value);  // if its a container, disable some things  var isContainerFlag = RDFCU.IsContainer(BMDS, gResource);  if (!isContainerFlag) {    // XXX To do: the "RDFCU.IsContainer" call above only works for RDF sequences;    //            if its not a RDF sequence, we should to more checking to see if    //            the item in question is really a container of not.  A good example    //            of this is the "File System" container.  }  var isLivemark = BookmarksUtils.resolveType(gResource) == "Livemark";  var isSeparator = BookmarksUtils.resolveType(gResource) == "BookmarkSeparator";  if (isContainerFlag || isSeparator) {    // Hide the "Load in sidebar" checkbox unless it's a bookmark.    var webpanelCheckbox = document.getElementById("webpanel");    webpanelCheckbox.hidden = true;    // If it is a folder, it has no URL or Keyword    document.getElementById("locationrow").setAttribute("hidden", "true");    document.getElementById("shortcutrow").setAttribute("hidden", "true");    if (isSeparator) {      document.getElementById("descriptionrow").setAttribute("hidden", "true");    }  }  if (isLivemark) {    document.getElementById("locationrow").hidden = true;    document.getElementById("shortcutrow").hidden = true;  } else {    document.getElementById("feedurlrow").hidden = true;  }  sizeToContent();    // set initial focus  nameNode.focus();  nameNode.select();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c5b8e2d95e4dfec4f4c95dfe37b3cf1a54bcbb82/bookmarksProperties.js/clean/browser/components/bookmarks/content/bookmarksProperties.js