785da5428ddebda0558d1c1432086e2f4fe905d5 tdreszer Wed Aug 24 13:03:24 2011 -0700 Fix from code review to use sessionId in dirty page reload. Note that Larry and I have seen that the new 'location' isn't even used, but changing the location does trigger the cache load to be abandoned and the isDirty code in hgTracks.js to be called sooner. diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 6afb7a4..9cc3b40 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -4958,31 +4958,32 @@ /* Break into a second form so that zooming and scrolling * can be done with a 'GET' so that user can back up from details * page without Internet Explorer popping up an annoying dialog. * Do rest of page as a 'POST' so that the ultra-long URL from * all the track controls doesn't break things. IE URL limit * is 2000 bytes, but some firewalls impose a ~1000 byte limit. * As a side effect of breaking up the page into two forms * we need to repeat the position in a hidden variable here * so that zoom/scrolling always has current position to work * from. */ #if IN_PLACE_UPDATE // This 'dirty' field is used to check if js/ajax changes to the page have occurred. // If so and it is reached by the back button, a page reload will occur instead. hPrintf("\n"); // Unfortunately this does not work in IE, so that browser will get the reload only after this full load. - hPrintf("\n",hgTracksName(),cart->userId); + // NOTE: Larry and I have seen that the new URL is not even used, but this will abort the page load and hasten the isDirty() check in hgTracks.js + hPrintf("\n",hgTracksName(),cart->sessionId); #endif/// IN_PLACE_UPDATE hPrintf("", chromName, winStart+1, winEnd); hPrintf("\n%s", trackGroupsHidden1->string); hPrintf("\n"); hPrintf("