#1744: go back after chunk edit,
[redakcja.git] / redakcja / static / js / catalogue / catalogue.js
1 (function($) {
2     $(function() {
3
4
5         $(function() {
6             $('.filter').change(function() {
7                 document.filter[this.name].value = this.value;
8                 document.filter.submit();
9             });
10
11             $('.check-filter').change(function() {
12                 document.filter[this.name].value = this.checked ? '1' : '';
13                 document.filter.submit();
14             });
15
16             $('.text-filter').each(function() {
17                 var inp = this;
18                 $(inp).parent().submit(function() {
19                     document.filter[inp.name].value = inp.value;
20                     document.filter.submit();
21                     return false;
22                 });
23             });
24         });
25
26
27     });
28 })(jQuery)
29