Author: renatoformato@virgilio.it
Date: Sat Aug 19 00:27:26 2006
New Revision: 4693
Log:
fix a jquery bug with ajax for safari
Modified:
_plugins_/-jQuery/jquery.lite.213.js
_plugins_/_ze_laboratoire_/spiip/inc/gadgets.php
Modified: _plugins_/-jQuery/jquery.lite.213.js
--- _plugins_/-jQuery/jquery.lite.213.js (original)
+++ _plugins_/-jQuery/jquery.lite.213.js Sat Aug 19 00:27:26 2006
@@ -1763,6 +1763,8 @@
// Wait for a response to come back
var onreadystatechange = function(istimeout){
+ //Safari call onreadystatechange with the event as parameter
+ if(!parseInt(istimeout)) istimeout=0;
// The transfer is complete and the data is available, or the request timed out
if ( xml && (xml.readyState == 4 || istimeout) ) {
var status = jQuery.httpSuccess( xml ) && !istimeout ?
Modified: _plugins_/_ze_laboratoire_/spiip/inc/gadgets.php
--- _plugins_/_ze_laboratoire_/spiip/inc/gadgets.php (original)
+++ _plugins_/_ze_laboratoire_/spiip/inc/gadgets.php Sat Aug 19 00:27:26 2006
@@ -206,8 +206,8 @@
if ($_COOKIE['spip_accepte_ajax'] != -1) {
return "\n<!-- javascript gadgets -->\n" .
http_script(
- "$('#bandeautoutsite').load('".generer_url_prive('inc-gadget-rubriques','lang='.$GLOBALS['spip_lang'],'&')."',null,function(){
- $('li',document.getElementById('bandeautoutsite')).hover(
+ "$('#bandeautoutsite').load('".generer_url_prive('inc-gadget-rubriques','lang='.$GLOBALS['spip_lang'],'&')."',function(){
+ $(this).find('li').hover(
function(){\$(this).addClass('sfhover')},
function(){\$(this).removeClass('sfhover')}
);