Changeset 64224 in spip-zone for _plugins_/facd/inclure


Ignore:
Timestamp:
Jul 30, 2012, 5:38:48 PM (9 years ago)
Author:
kent1@…
Message:

Eviter de recharger 20 fois et de tout planter... On ne click que sur le premier bouton recharger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/facd/inclure/facd_info_conversion.html

    r63088 r64224  
    11<BOUCLE_attente(FACD_CONVERSIONS){id_document}{statut IN en_cours,non}{!par maj}{0,1}>
    2 [(#STATUT|=={non}|oui)<a href="[(#SELF|parametre_url{relance,''}|parametre_url{hasard,[(#VAL{0}|rand{10000000000})]})]" id="facd_recharge_#ID_DOCUMENT" class="ajax" title="<:facd:lien_recharger:>"><:facd:info_document_dans_file_attente:></a>]
    3 [(#STATUT|=={en_cours}|oui)<a href="[(#SELF|parametre_url{relance,''}|parametre_url{hasard,[(#VAL{0}|rand{10000000000})]})]" id="facd_recharge_#ID_DOCUMENT" class="ajax" title="<:facd:lien_recharger:>"><:facd:info_document_conversion:></a>]
     2[(#STATUT|=={non}|oui)<a href="[(#SELF|parametre_url{relance,''}|parametre_url{hasard,[(#VAL{0}|rand{10000000000})]})]" id="facd_recharge_#ID_DOCUMENT" class="facd_reload" class="ajax" title="<:facd:lien_recharger:>"><:facd:info_document_dans_file_attente:></a>]
     3[(#STATUT|=={en_cours}|oui)<a href="[(#SELF|parametre_url{relance,''}|parametre_url{hasard,[(#VAL{0}|rand{10000000000})]})]" id="facd_recharge_#ID_DOCUMENT" class="facd_reload" class="ajax" title="<:facd:lien_recharger:>"><:facd:info_document_conversion:></a>]
    44<script type="text/javascript">
    55        var refresh_#ID_DOCUMENT = function(){
    6                 $('#facd_recharge_#ID_DOCUMENT').click();
     6                if($('a.facd_reload').size() == 1){
     7                        $('a#facd_recharge_#ID_DOCUMENT').click();
     8                }else if($('a.facd_reload').eq(0).attr('id') == 'facd_recharge_#ID_DOCUMENT'){
     9                        $('a#facd_recharge_#ID_DOCUMENT').click();
     10                }
    711        }
    812        clearTimeout(refresh_#ID_DOCUMENT);
Note: See TracChangeset for help on using the changeset viewer.