* (bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation
* (bug 14063) Power search form missing <label> for redirects check
* (bug 14111) Similar filename warning links now lead to correct page
+* (bug 14082) Fix for complex text input vs AJAX suggestions on some browsers
=== API changes in 1.13 ===
}
function powerSearchFocus() {
- return "<script type='text/javascript'>" .
- "document.getElementById('powerSearchText').focus();" .
+ global $wgJsMimeType;
+ return "<script type=\"$wgJsMimeType\">" .
+ "hookEvent(\"load\", function(){" .
+ "document.getElementById('powerSearchText').focus();" .
+ "});" .
"</script>";
}
var os_is_stopped = false;
// max lines to show in suggest table
var os_max_lines_per_suggest = 7;
-// if we are about to focus the searchbox for the first time
-var os_first_focus = true;
/** Timeout timer class that will fetch the results */
function os_Timer(id,r,query){
return; // not our event
os_mouse_moved = false;
-
- if(os_first_focus){
- // firefox bug, focus&defocus to make autocomplete=off valid
- targ.blur(); targ.focus();
- os_first_focus = false;
- }
os_cur_keypressed = (window.Event) ? e.which : e.keyCode;
os_last_keypress = 0;
/** Event: loss of focus of input box */
function os_eventBlur(e){
- if(os_first_focus)
- return; // we are focusing/defocusing
var targ = os_getTarget(e);
var r = os_map[targ.id];
if(r == null)
}
/** Event: focus (catch only when stopped) */
-function os_eventFocus(e){
- if(os_first_focus)
- return; // we are focusing/defocusing
+function os_eventFocus(e){
+ // nothing happens here?
}