90d8c11d0c077d2d7843f07878e3e42469e82612 angie Fri Apr 27 15:53:57 2012 -0700 UI for #6152 (Variant Annotation Tool): position input is now searchedonblur and before we submit the page to execute a query, so that if a position is not found or has multiple matches, the user is returned to the UI to fix it. diff --git src/hg/lib/web.c src/hg/lib/web.c index 27e561f..6aa827d 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -579,45 +579,54 @@ void webEnd() /* output the footer of the HTML page */ { if(!webInTextMode) { webEndSectionTables(); #ifndef GBROWSE googleAnalytics(); #endif /* GBROWSE */ puts( ""); webPopErrHandlers(); } } +static boolean gotWarnings = FALSE; + void webVaWarn(char *format, va_list args) /* Warning handler that closes out page and stuff in * the fancy form. */ { +gotWarnings = TRUE; boolean needStart = !webHeadAlreadyOutputed; if (needStart) webStart(errCart, NULL, "Error"); htmlVaWarn(format, args); printf("\n\n"); printf("\n\n"); if (needStart) webEnd(); } +boolean webGotWarnings() +/* Return TRUE if webVaWarn has been called. */ +{ +return gotWarnings; +} + void webAbort(char* title, char* format, ...) /* an abort function that outputs a error page */ { va_list args; va_start(args, format); /* output the header */ if(!webHeadAlreadyOutputed) webStart(errCart, NULL, title); /* in text mode, have a different error */ if(webInTextMode) printf("\n\n\n %s\n\n", title); vprintf(format, args);