25f258c7fdfbdf417a917fcd00fff78d698def9b
chmalee
Fri Aug 30 12:01:24 2024 -0700
Big run through of changes to accomodate jquery 3.7.1 upgrade. Most of the changes are replacing the event methods with a change to .on(event, function(..)). A couple more changes are removing calls to jquery.type(). Also fixes various plugins and styles
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index dad0f84..a7fe709 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -814,31 +814,31 @@
int saveInsideX = insideX;
int saveInsideWidth = insideWidth;
insideX = textWidth+4;
insideWidth = ideoWidth-insideX;
ideoTrack->drawItems(ideoTrack, winStart, winEnd, hvg, insideX, gfxBorder,
insideWidth, font, ideoTrack->ixColor, ideoTrack->limitedVis);
insideX = saveInsideX;
insideWidth = saveInsideWidth;
hvGfxUnclip(hvg);
/* Save out picture and tell html file about it. */
hvGfxClose(&hvg);
/* Finish map. */
if (!psOutput)
{
hPrintf("\n");
- jsInline("$('area.cytoBand').click(function(){return false;});\n");
+ jsInline("$('area.cytoBand').on(\"click\", function(){return false;});\n");
}
}
// create an empty hidden-map place holder which can change dynamically with ajax callbacks.
if (!doIdeo && !psOutput)
{
hPrintf("\n");
}
hPrintf("
");
if (!psOutput)
{
// by default, create an empty hidden ideo place holder for future dynamic ajax update
char *srcPath = "";
@@ -8521,31 +8521,31 @@
}
void printShortcutButtons(struct cart *cart, bool hasCustomTracks, bool revCmplDisp, bool multiRegionButtonTop)
/* Display bottom control panel. */
{
if (isSearchTracksSupported(database,cart))
{
cgiMakeButtonWithMsg(TRACK_SEARCH, TRACK_SEARCH_BUTTON,TRACK_SEARCH_HINT);
}
hPrintf(" ");
// Not a submit button, because this is not a CGI function, it only calls Javascript function
hPrintf("");
-jsInlineF("$('#highlightThis').click( function(ev) { highlightCurrentPosition('add'); return false; } );");
+jsInlineF("$('#highlightThis').on(\"click\", function(ev) { highlightCurrentPosition('add'); return false; } );");
hPrintf(" ");
hButtonWithMsg("hgt.hideAll", "Hide all","Hide all currently visible tracks - keyboard shortcut: h, then a");
hPrintf(" ");
hPrintf("",
hasCustomTracks ? CT_MANAGE_BUTTON_LABEL : CT_ADD_BUTTON_LABEL,
hasCustomTracks ? "Manage your custom tracks - keyboard shortcut: c, then t" : "Add your own custom tracks - keyboard shortcut: c, then t");
jsOnEventById("click", "ct_add", "document.customTrackForm.submit(); return false;");
hPrintf(" ");
hButtonWithMsg("hgTracksConfigPage", "Configure","Configure image and track selection - keyboard shortcut: c, then f");
hPrintf(" ");
if (!multiRegionButtonTop)