Commit | Line | Data |
---|---|---|
697f62e3 OL |
1 | <style type="text/css"> |
2 | @media print { | |
abf91905 | 3 | .noprint, ul.object-tools .noprint {display: none;} |
697f62e3 | 4 | } |
abf91905 JPC |
5 | .action-remove-block { |
6 | display: block; | |
7 | position: relative; | |
8 | top: 10px; | |
9 | left: 10px; | |
10 | } | |
11 | table { clear: both; float: none } | |
12 | h3 { float: left } | |
697f62e3 | 13 | </style> |
abf91905 JPC |
14 | <script type="text/javascript"> |
15 | var objects = document.getElementsByClassName("action-remove-block"); | |
16 | for(var i = 0; i < objects.length; i++) { | |
17 | console.log(objects[i]) | |
18 | objects[i].onclick = function(){ | |
19 | for(var n = 0; n < objects[i].parentNode.length;i++) | |
20 | { | |
21 | if(objects[i].parentNode[n] == this) | |
22 | { | |
23 | var next = objects[i].parentNode[n + 1]; | |
24 | } | |
25 | } | |
26 | } | |
27 | } | |
28 | </script> | |
697f62e3 OL |
29 | |
30 | <ul class="object-tools"> | |
31 | <li><a href="javascript:window.print()" class="noprint">Imprimer</a></li> | |
32 | </ul> | |
33 |