76b1ff207748ca1da3d929e5286ccb72bd0528ef angie Wed Jun 12 13:29:36 2013 -0700 Bugfixes and improvements suggested by Brooke in #6152 notes 36, 38, 42. refs #6152 diff --git src/hg/hgCustom/hgCustom.c src/hg/hgCustom/hgCustom.c index 1fb4901..a8f44e6 100644 --- src/hg/hgCustom/hgCustom.c +++ src/hg/hgCustom/hgCustom.c @@ -736,31 +736,31 @@ cgiSimpleTableRowStart(); if (numCts) { puts("<TD VALIGN=\"TOP\">"); showCustomTrackList(ctList, numCts); } else puts("<TD VALIGN=\"TOP\"><B><EM>No custom tracks for this genome:<B></EM> "); puts("</TD>"); /* navigation buttons */ puts("<TD VALIGN=\"TOP\">"); puts("<TABLE BORDER=0>"); /* button to add custom tracks */ -int buttonWidth = 13; +int buttonWidth = 18; puts("<TR><TD>"); printf("<INPUT TYPE=SUBMIT NAME=\"%s\" VALUE=\"%s\" STYLE=\"width:%dem\">", hgCtDoAdd, "add custom tracks", buttonWidth); puts("</TD></TR>"); puts("</FORM>"); /* determine if there's a navigation position for this screen */ char *pos = NULL; if (ctList) { pos = ctInitialPosition(ctList); if (!pos) pos = ctFirstItemPos(ctList); } @@ -774,30 +774,40 @@ if (pos) cgiMakeHiddenVar("position", pos); puts("</FORM>"); puts("</TD></TR>"); /* button for TB navigation */ puts("<TR><TD>"); printf("<FORM STYLE=\"margin-bottom:0;\" ACTION=\"%s\" METHOD=\"GET\" NAME=\"tablesForm\">\n", hgTablesName()); cartSaveSession(cart); printf("<INPUT TYPE=SUBMIT NAME=\"Submit\" VALUE=\"%s\" STYLE=\"width:%dem\">", "go to table browser", buttonWidth); puts("</FORM>"); puts("</TD></TR>"); +/* button for VAI navigation */ +puts("<TR><TD>"); +printf("<FORM STYLE=\"margin-bottom:0;\" ACTION=\"%s\" METHOD=\"GET\" NAME=\"vaiForm\">\n", + hgVaiName()); +cartSaveSession(cart); +printf("<INPUT TYPE=SUBMIT NAME=\"Submit\" VALUE=\"%s\" STYLE=\"width:%dem\">", + "go to variant annotation integrator", buttonWidth); +puts("</FORM>"); +puts("</TD></TR>"); + puts("</TABLE>"); puts("</TD>"); cgiTableRowEnd(); cgiTableEnd(); cartSetString(cart, "hgta_group", "user"); } void helpCustom() /* display documentation */ { webNewSection("Loading Custom Tracks"); char *browserVersion; if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8') puts("<span>");