bdd82165484a4faf7397933a9db170ede3b3ed0c
braney
  Wed Feb 7 14:56:09 2018 -0800
fixing bugs in hgCollection

diff --git src/hg/js/hgCollection.js src/hg/js/hgCollection.js
index cc86533..edc7022 100644
--- src/hg/js/hgCollection.js
+++ src/hg/js/hgCollection.js
@@ -168,31 +168,30 @@
 
     function newCollection() {
         var newName = $("#customName").val().trim();
         if (!validateLabel(newName))
             return;
 
         var newDescription = $("#customDescription").val().trim();
         if (!validateLabel(newDescription))
             return;
         var ourCollectionName = getUniqueName("coll");
         var parent = $(selectedTree).find("li").first();
         $( "#newCollectionDialog" ).dialog("close");
 
         var newId = $(selectedTree).jstree("create_node", "#", newName + " (" + newDescription + ")");
         var newId2 = $(selectedTree).jstree("create_node", newId, emptyCollectionText);
-        $("#newCollectionHint").hide();
         var newNode = $(selectedTree).jstree("get_node", newId);
         isDirty = true;
         newNode.li_attr.class = "folder empty";
         newNode.li_attr.name = ourCollectionName;
         newNode.li_attr.shortlabel = newName;
         newNode.li_attr.longlabel = newDescription;
         newNode.li_attr.visibility = $("#customVis").val();
         newNode.li_attr.color = $("#customColorInput").val();
         newNode.li_attr.missingmethod = $("input:radio[name ='missingData']:checked").val();
         newNode.li_attr.viewfunc = $("#viewFunc").val();
         newNode.li_attr.viewtype = "collection";
         $(selectedTree).jstree("set_icon", newNode, '../images/folderC.png');
         $(selectedTree).jstree("deselect_node", selectedNode);
         $(selectedTree).jstree("select_node", newNode.id);
         rebuildLabel();
@@ -413,34 +412,30 @@
                     "check_callback" : checkCallback,
                    'always_copy' : true,
                     is_draggable: isDraggable,
                },
                'core' :  {
                    "check_callback" : checkCallback,
                    "dblclick_toggle" : false,
                 },
         });
         treeDiv.on("select_node.jstree", function (evt, data)  {
             $(evt.target).jstree("open_node", data.node);
         });
         treeDiv.on('click', '.jstree-themeicon ', plusHit);
         var firstChild = $(treeDiv).find("li").first();
         $(treeDiv).jstree("select_node", $(firstChild).attr("id"));
-
-        if (addedOne) {
-            $("#newCollectionHint").hide();
-        }
     }
 
    function submitForm() {
     // Submit the form (from GO button -- as in hgGateway.js)
     // Show a spinner -- sometimes it takes a while for hgTracks to start displaying.
         $('.gbIconGo').removeClass('fa-play').addClass('fa-spinner fa-spin');
         goTracks = true;
         saveCollections(trees);
     }
 
     function updatePage(responseJson) {
         // called after AJAX call
         isDirty = false;
         if (!responseJson) {
             return;