https://bugzilla.wikimedia.org/show_bug.cgi?id=23772
Daniel Friesen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mediawiki-bugs@nadir-seen-f | |ire.com --- Comment #10 from Daniel Friesen <[email protected]> 2012-09-30 14:51:29 UTC --- I already looked into the best way to handle this myself. The plan is to add a "Not what you're looking for? You can instead search for <pages containing "...">.". The way to do this is with JS. Listen for the submission of the search form. On submit save the search query into sessionStorage. On page view if you're on the searchpage discard it. Otherwise use it to insert that message. sessionStorage is supported by just about every modern browser, in fact even IE8 supports it. sessionStorage is tied to the specific tab you are in, so even if you submit two pages at the same time it'll never be confused about what page to put the message on. If IE7- support is necessary we can use the same technique with a cookie fallback. It won't be as perfect but it's just for minor compat. I think I actually started writing it somewhere (can't remember where it is). The hardest part is really just figuring out where to output the message and how to do it in a skin-independent way. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
