Changeset 2985
- Timestamp:
- 07/25/08 17:25:18 (4 weeks ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/project/modules/devel/cms3/heading/templates/headingelements.admin.php
r2981 r2985 19 19 <tr> 20 20 <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']); ?>" 22 22 title="<?php echo $headingElementInformation->type_hei; ?>" 23 23 alt="<?php echo $headingElementInformation->type_hei; ?>" … … 104 104 105 105 <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){ 109 110 if (pTypeElement == 'heading'){ 110 document.location.url = Copix.getActionUrl (); 111 document.location = Copix.getActionURL ('heading|admin|', {'heading' : pPublicId}); 112 return false; 111 113 } 112 114 } 115 lastPublicId = pPublicId; 116 117 //lancement de la mise à jour 113 118 var AjaxRequest = new Ajax(Copix.getActionURL('heading|admin|headingelementinformation', {'id_helt':pIdElement, 'type_hei':pTypeElement}),{ 114 119 execScripts: true, 115 120 update: pDivId 116 }).request(); 121 }).request(); 117 122 return false; 118 123 }
