blob: 26f4e80440d0c02e94b4ba9dfd5a4f08a98e3322 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$(document).ready(function(){
if($('.listelement .element').find('.dispnone').length >= 1){
console.log($(this));
$('.listelement .element').find('.dispnone').parent().find('.title')
.css('cursor','pointer')
.prepend("<span class='toggler'><img src='/media/img/right.png'></span> ")
.data('toggle','0');
$('.listelement .title').click(function(){
$(this).siblings('.dispnone').toggle();
if($(this).data('toggle') == '0'){
$(this).data('toggle','1');
$(this).find('.toggler img').attr('src','/media/img/down.png')
}
else{
$(this).data('toggle','0');
$(this).find('.toggler img').attr('src','/media/img/right.png')
}
});
}
});
function checkAllCheckBoxes(exceptions) {
$('input:checkbox').attr('checked','checked');
return;
}
function uncheckAllCheckBoxes(exceptions) {
$('input:checkbox').attr('checked','');
return;
}
|