c5431a9dbb4beeeecd953fc959b563c8538cb1b5 max Wed Sep 29 03:24:00 2021 -0700 configure dropdowns colors, also work on supertracks, refs #26257 diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c index 83a0f27..0365e8b 100644 --- src/hg/hgTracks/config.c +++ src/hg/hgTracks/config.c @@ -198,31 +198,31 @@ dyStringPrintf(dy, " $(\"[name='textStyle']\").empty();"); dyStringPrintf(dy, " val= $(this).find(':selected').val(); \n"); dyStringPrintf(dy, " if (fontStyles[val].length == 1) {\n"); dyStringPrintf(dy, " $(\"[id='textStyleDrop']\").hide();$(\"[id='textStyleName']\").hide();\n"); dyStringPrintf(dy, " $(\"[name='textStyle']\").val('Normal');\n"); dyStringPrintf(dy, " } else {\n"); dyStringPrintf(dy, " $(\"[id='textStyleDrop']\").show();$(\"[id='textStyleName']\").show();\n"); dyStringPrintf(dy, " }\n"); dyStringPrintf(dy, " for(ii=0; ii < fontStyles[val].length; ii++) { $(\"[name='textStyle']\").append( new Option(fontStyles[val][ii],fontStyles[val][ii],))};\n"); dyStringPrintf(dy, "});\n"); dyStringPrintf(dy, "$(\"[name='textFont']\").change();\n"); dyStringPrintf(dy, "$(\"[name='textStyle']\").val('%s');\n", currentStyle); jsInline(dy->string); hDropList(textFontVar, faceNames, numFonts, currentFontName); -jsInline("$('[name=\"textFont\"]')[0].style.width='15em');\n"); // hDropList has no 'style' nor 'id' argument <-> no opt args in C +jsInline("$('[name=\"textFont\"]')[0].style.width='15em';\n"); // hDropList has no 'style' nor 'id' argument <-> no opt args in C } static void textStyleDropDown() /* Create drop down for font size. */ { hDropList(textStyleVar, emptyStyles, ArraySize(emptyStyles), emptyStyles[0]); } static void textSizeDropDown() /* Create drop down for font size. */ { static char *sizes[] = {"6", "8", "10", "12", "14", "18", "24", "34"}; hDropList(textSizeVar, sizes, ArraySize(sizes), tl.textSize); }