Skip to content
Extraits de code Groupes Projets
Valider 3bcc07e7 rédigé par renato's avatar renato
Parcourir les fichiers

the "statut puce" are now loaded for every article in the list and not only...

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
parent 587c5710
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -556,7 +556,9 @@ function puce_statut_article($id, $statut, $id_rubrique, $ajax = false) { ...@@ -556,7 +556,9 @@ function puce_statut_article($id, $statut, $id_rubrique, $ajax = false) {
$action = "'".generer_url_ecrire('puce_statut_article',"id='+id",true); $action = "'".generer_url_ecrire('puce_statut_article',"id='+id",true);
$script = "<script type='text/javascript'><!--\n"; $script = "<script type='text/javascript'><!--\n";
$script .= "$(document).ready(function(){ $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 = $(this).id();
id = id.substr(6,id.length-1); id = id.substr(6,id.length-1);
$('#statut'+id).load($action,function(){ $('#statut'+id).load($action,function(){
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter