Revision ff33b093
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/generic/toggle_wrapper.html | ||
---|---|---|
25 | 25 |
// Toggle to minimum |
26 | 26 |
$("#toggler-1").click(function(){ |
27 | 27 |
$(wrapper).animate({height:"30px"},200).addClass("bordered"); |
28 |
$(toggles_id).addClass("max"); |
|
28 | 29 |
$(this).toggle(); |
29 | 30 |
$("#toggler-2").toggle(); |
30 | 31 |
}); |
31 | 32 |
// Toggle back to maximum |
32 | 33 |
$("#toggler-2").click(function(){ |
33 | 34 |
$(wrapper).animate({height:hi},200).removeClass("bordered"); |
35 |
$(toggles_id).removeClass("max"); |
|
34 | 36 |
$(this).toggle(); |
35 | 37 |
$("#toggler-1").toggle(); |
36 | 38 |
}); |
Auch abrufbar als: Unified diff
Optimierung Javascript Design4.0