Changeset 2985

Show
Ignore:
Timestamp:
07/25/08 17:25:18 (4 weeks ago)
Author:
gcroes
Message:

Synchro

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/project/modules/devel/cms3/heading/templates/headingelements.admin.php

    r2981 r2985  
    1919<tr> 
    2020 <td><input type="checkbox" name="arSelectedHeadingElementInformations[]" value="<?php echo $headingElementInformation->id_helt.'|'.$headingElementInformation->type_hei; ?>" /></td> 
    21  <td><a href="#" onclick="return showHeadingElementInformationsIn ('<?php echo $headingElementInformation->id_helt?>', '<?php echo $headingElementInformation->type_hei ?>', 'HeadingElementInformationDiv');"><img src="<?php echo _resource ($ppo->arHeadingElementTypes[$headingElementInformation->type_hei]['image']); ?>"  
     21 <td><a href="#" onclick="return showHeadingElementInformationsIn ('<?php echo $headingElementInformation->id_helt?>', '<?php echo $headingElementInformation->type_hei ?>', '<?php echo $headingElementInformation->public_id_hei ?>', 'HeadingElementInformationDiv');"><img src="<?php echo _resource ($ppo->arHeadingElementTypes[$headingElementInformation->type_hei]['image']); ?>"  
    2222          title="<?php echo $headingElementInformation->type_hei; ?>"  
    2323          alt="<?php echo $headingElementInformation->type_hei; ?>"  
     
    104104  
    105105<script> 
    106     var lastIdHelt, lastTypeHei;  
    107     function showHeadingElementInformationsIn (pIdElement, pTypeElement, pDivId){ 
    108         if (pIdElement == lastIdHelt && pTypeElement == lastTypeHei){ 
     106    var lastPublicId;  
     107    function showHeadingElementInformationsIn (pIdElement, pTypeElement, pPublicId, pDivId){ 
     108        //gestion du double clic 
     109        if (pPublicId == lastPublicId){ 
    109110           if (pTypeElement == 'heading'){ 
    110               document.location.url = Copix.getActionUrl (); 
     111              document.location = Copix.getActionURL ('heading|admin|', {'heading' : pPublicId}); 
     112              return false; 
    111113           } 
    112114        } 
     115        lastPublicId  = pPublicId; 
     116 
     117        //lancement de la mise à jour 
    113118        var AjaxRequest = new Ajax(Copix.getActionURL('heading|admin|headingelementinformation', {'id_helt':pIdElement, 'type_hei':pTypeElement}),{ 
    114119            execScripts: true, 
    115120            update: pDivId 
    116         }).request();       
     121        }).request(); 
    117122        return false; 
    118123    }