05ccc5f7743fcccebdfd8b59c11374c23ad61bc7 Merge parents a7843fa b505056 larrym Mon Jun 25 11:28:23 2012 -0700 resolve merge conflict with master diff --cc src/hg/hgGateway/hgGateway.c index aae3bf9,e4a61ac..9d5a4d3 --- src/hg/hgGateway/hgGateway.c +++ src/hg/hgGateway/hgGateway.c @@@ -49,164 -49,170 +49,161 @@@ then remove custom track data which will be irrelevant in this new database . If databases were changed then use the new default position too. */ if (sameString(position, "genome") || sameString(position, "hgBatch")) position = defaultPosition; jsIncludeFile("jquery.js", NULL); webIncludeResourceFile("jquery-ui.css"); jsIncludeFile("jquery-ui.js", NULL); jsIncludeFile("ajax.js", NULL); jsIncludeFile("autocomplete.js", NULL); jsIncludeFile("hgGateway.js", NULL); jsIncludeFile("utils.js", NULL); +jsIncludeFile("jquery.watermarkinput.js", NULL); - puts( - "
" - "The UCSC Genome Browser was created by the \n" - "Genome Bioinformatics Group of UC Santa Cruz.\n" - "
" - "Software Copyright (c) The Regents of the University of California.\n" - "All rights reserved.\n" - "
\n" - ); - - puts( - "
\n" - "
" - "\n" - "\n"); - puts( - "
\n"); + puts("
" + "The UCSC Genome Browser was created by the \n" + "Genome Bioinformatics Group of UC Santa Cruz.\n" + "
" + "Software Copyright (c) The Regents of the University of California.\n" + "All rights reserved.\n" + "
\n"); + + puts("\n" + "
" + "\n" + "\n"); + puts("\n" + "
\n"); cgiMakeHiddenVar(hgHubConnectCgiDestUrl, "../cgi-bin/hgTracks"); puts(""); if (gotClade) puts(""); - puts( - "\n" - "\n" - "\n"); + puts("\n" + "\n" + "\n"); + if(supportsSuggest) + puts("\n"); puts( "\n" "\n" ); if (gotClade) { puts("\n"); } puts("\n"); puts("\n"); puts("\n"); -if(supportsSuggest) - { - puts("\n"); - } - cartSetString(cart, "position", position); cartSetString(cart, "db", db); cartSetString(cart, "org", organism); if (gotClade) cartSetString(cart, "clade", clade); freez(&defaultPosition); position = NULL; puts("\n" - "
cladegenomeassemblyposition or search termgenomeassemblyposition or search termgene  
\n"); printCladeListHtml(organism, onChangeClade); puts("\n"); if (gotClade) printGenomeListForCladeHtml(db, onChangeOrg); else printGenomeListHtml(db, onChangeOrg); puts("\n"); printAssemblyListHtml(db, onChangeDB); puts("\n"); -cgiMakeTextVar("position", addCommasToPos(db, position), 30); +hPrintf("%s", addCommasToPos(db, position)); +hPrintf("\n", addCommasToPos(db, position)); +hPrintf("\n"); +if(assemblySupportsGeneSuggest(db)) + hPrintf("\n", assemblyGeneSuggestTrack(db)); printf("\n"); - hPrintf("\n" - "\n", assemblyGeneSuggestTrack(db) - ); - printf(""); -if(supportsSuggest) - hButtonWithOnClick("Submit", "submit", NULL, "submitButtonOnClick()"); -else - cgiMakeButton("Submit", "submit"); -// This is a clear submit button that browsers will use by default when enter is pressed -// in position box. FIXME: This should be done with js onchange event! -printf(""); +hButton("Submit", "submit"); - +/* This is a clear submit button that browsers will use by default when enter is pressed in position box. FIXME: This should be done with js onchange event! */ +printf(""); cartSaveSession(cart); /* Put up hgsid= as hidden variable. */ - puts( - "
\n" - "
\n" + "

\n" - "Click here to reset the browser user interface settings to their defaults."); + puts("

\n" + "Click here to reset " + "the browser user interface settings to their defaults."); #define SURVEY 1 #ifdef SURVEY if (survey && differentWord(survey, "off")) - printf("   %s", survey, surveyLabel ? surveyLabel : "Take survey"); + printf("   " + "%s", + survey, surveyLabel ? surveyLabel : "Take survey"); #endif - puts( - "
\n" - "
\n" - "
\n" - ); + puts("
\n" + "
\n" + "
\n"); puts(""); puts(""); - if(isSearchTracksSupported(db,cart)) + if (isSearchTracksSupported(db,cart)) { puts(""); } // custom track button. disable hgCustom button on GSID server, until // necessary additional work is authorized. puts(""); if (hubConnectTableExists()) { puts(""); } // configure button puts(""); // clear possition button puts(""); puts("
"); cgiMakeButtonWithMsg(TRACK_SEARCH, TRACK_SEARCH_BUTTON,TRACK_SEARCH_HINT); puts(""); /* disable CT for CGB servers for the time being */ if (!hIsGsidServer() && !hIsCgbServer()) { boolean hasCustomTracks = customTracksExist(cart, NULL); printf("\n", hgCustomName(),hasCustomTracks ? CT_MANAGE_BUTTON_LABEL:CT_ADD_BUTTON_LABEL, hasCustomTracks ? "Manage your custom tracks" : "Add your own custom tracks" ); } puts(""); printf("\n", - "../cgi-bin/hgHubConnect", "track hubs", "Import tracks"); + "../cgi-bin/hgHubConnect", "track hubs", "Import tracks"); puts(""); - cgiMakeButtonWithMsg("hgTracksConfigPage", "configure tracks and display","Configure track selections and browser display"); + cgiMakeButtonWithMsg("hgTracksConfigPage", "configure tracks and display", + "Configure track selections and browser display"); puts(""); if(supportsSuggest) - cgiMakeOnClickButton("document.mainForm.position.value=''; document.getElementById('suggest').value='';", "clear position"); + cgiMakeOnClickButton("document.mainForm.position.value=''; document.getElementById('positionInput').value='';", "clear position"); else cgiMakeOnClickButton("document.mainForm.position.value=''", "clear position"); puts("
"); puts("
\n" "
\n" ); puts("
"); if(!cartVarExists(cart, "pix")) // put a hidden input for pix on page so default value can be filled in on the client side hPrintf("\n");