* Use native XMLHttpRequest class in preference to ActiveX on IE 7; this
avoids the "ActiveX "Do you want to allow ActiveX?" prompt when something
security settings are cranked this way and AJAX-y gets used.
+* Delay AJAX watch initialization until click so IE 6 with ugly security
+ settings doesn't prompt you until you use the link.
== API changes since 1.10 ==
} else if (wgAjaxWatch.inprogress) {
return false;
}
+ if(!wfSupportsAjax()) {
+ // Lazy initialization so we don't toss up
+ // ActiveX warnings on initial page load
+ // for IE 6 users with security settings.
+ wgAjaxWatch.supported = false;
+ return true;
+ }
+
wgAjaxWatch.inprogress = true;
wgAjaxWatch.setLinkText( wgAjaxWatch.watching
? wgAjaxWatch.unwatchingMsg : wgAjaxWatch.watchingMsg);
}
}
- if(!wfSupportsAjax()) {
- wgAjaxWatch.supported = false;
- return;
- }
-
// The id can be either for the parent (Monobook-based) or the element
// itself (non-Monobook)
wgAjaxWatch.watchLinks.push( el1.tagName.toLowerCase() == "a"