| 2 |
lars |
1 |
$(document).ready(function() {
|
|
|
2 |
|
|
|
3 |
// css switcher
|
|
|
4 |
$('.switch_small').bind('click', function(){
|
|
|
5 |
console.log("small: artikel_box");
|
|
|
6 |
// erstmal die container-Klasse umbenennen
|
|
|
7 |
$('.content .artikel_box_100').each(function(index){
|
|
|
8 |
$(this).attr('class','artikel_box');
|
|
|
9 |
});
|
|
|
10 |
// noch die Auswahl in der Session speichern
|
|
|
11 |
$('.session').load("/module/setSessionVars.php?switch=small");
|
|
|
12 |
});
|
|
|
13 |
|
|
|
14 |
$('.switch_big').bind('click', function(){
|
|
|
15 |
console.log("big: artikel_box_100");
|
|
|
16 |
// erstmal die container-Klasse umbenennen
|
|
|
17 |
$('.content .artikel_box').each(function(index){
|
|
|
18 |
$(this).attr('class','artikel_box_100');
|
|
|
19 |
});
|
|
|
20 |
// noch die Auswahl in der Session speichern
|
|
|
21 |
$('.session').load("/module/setSessionVars.php?switch=big");
|
|
|
22 |
});
|
|
|
23 |
|
|
|
24 |
});
|