Last modified: 2012-12-16 17:43:09 UTC
The ajax search feature works fine using the monobook skin, but it fails to function properly using the modern skin.
The cause is the ajaxsearch.js code expects to find a div with the id of "content" and in modern the div is named "mw_content" instead.
This can be fixed either by one of the following
1. changing the modern theme to use the same ID as the rest of the themes..
2. change the rest of the themes to use mw_content id and update the ajaxsearch.js to use that ID as well
3. update ajax search to check BOTH ids.
body = document.getElementById("content") || document.getElementById("mw_content");
The old ajax search is obsoleted by the new ajax suggest search; I'm probably going to remove it today, so this bug'll be obsolete. :)
Brion, has this been done? If so, please close.
Now that 1.13 release is past, I've gone ahead and removed the old AJAX search in r39717.
The new suggestion search works fine in Modern, so mission accomplished. :)