From 3bcc07e7f27bc82485eb4cc29042b6c5a1ee62db Mon Sep 17 00:00:00 2001 From: renato <renato@rezo.net> Date: Mon, 20 Nov 2006 19:11:27 +0000 Subject: [PATCH] the "statut puce" are now loaded for every article in the list and not only for the first one on which the mouseover event was fired --- ecrire/inc/presentation.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index 8b114f43ea..f48f20e1ff 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -556,7 +556,9 @@ function puce_statut_article($id, $statut, $id_rubrique, $ajax = false) { $action = "'".generer_url_ecrire('puce_statut_article',"id='+id",true); $script = "<script type='text/javascript'><!--\n"; $script .= "$(document).ready(function(){ - $('div.puce_article').onemouseover( function() { + $('div.puce_article').mouseover( function() { + if(this.puce_loaded) return; + this.puce_loaded = true; id = $(this).id(); id = id.substr(6,id.length-1); $('#statut'+id).load($action,function(){ -- GitLab