From: Aaron Schulz Date: Sat, 2 Aug 2008 19:48:56 +0000 (+0000) Subject: Move wfSupportsAjax() to ajax.js X-Git-Tag: 1.31.0-rc.0~46184 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=98971dccf4c79f135e06f21c5fab122bf16cdaff;p=lhc%2Fweb%2Fwiklou.git Move wfSupportsAjax() to ajax.js --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f83fa7a659..654f0cf3c6 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1373,7 +1373,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '164'; +$wgStyleVersion = '165'; # Server-side caching: diff --git a/skins/common/ajax.js b/skins/common/ajax.js index 854d7a0003..afcfa70895 100644 --- a/skins/common/ajax.js +++ b/skins/common/ajax.js @@ -154,3 +154,14 @@ function sajax_do_call(func_name, args, target) { return true; } + +/** + * @return boolean whether the browser supports XMLHttpRequest + */ +function wfSupportsAjax() { + var request = sajax_init_object(); + var supportsAjax = request ? true : false; + delete request; + return supportsAjax; +} + diff --git a/skins/common/ajaxwatch.js b/skins/common/ajaxwatch.js index b30e4ffd49..d7c06254c3 100644 --- a/skins/common/ajaxwatch.js +++ b/skins/common/ajaxwatch.js @@ -146,13 +146,3 @@ wgAjaxWatch.onLoad = function() { }; hookEvent("load", wgAjaxWatch.onLoad); - -/** - * @return boolean whether the browser supports XMLHttpRequest - */ -function wfSupportsAjax() { - var request = sajax_init_object(); - var supportsAjax = request ? true : false; - delete request; - return supportsAjax; -}