X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=62fed9a607ad8825c684095ac3720ed1955a98a4;hb=7eb3ec5aa9b558216fc06205a4085d875f554a7c;hp=b5c1b346cfb7a6b66fc58eb6c9d7b9d235fc5244;hpb=65bd06d8b82c551b6e29a248e4b13f9e4d6016cb;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index b5c1b34..62fed9a 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -5,6 +5,7 @@ // Set up namespace and some state. var mkws = { + authenticated: false, filters: [], }; @@ -416,6 +417,11 @@ function onFormSubmitEventHandler() function newSearch(query) { + if (!mkws.authenticated) { + alert("searching before authentication"); + return; + } + mkws.filters = [] redraw_navi(); resetPage(); @@ -1009,7 +1015,7 @@ function mkws_service_proxy_auth(auth_url, auth_domain) { } debug("Service proxy auth successfully done"); - mkws.service_proxy_auth = true; + mkws.authenticated = true; }); }