Revision 1423:64d696f3fde4,
577 bytes
checked in by franck <carnet.franck.paul@…>, 12 years ago
(diff) |
Change antispam filters list in order to avoid collision with formfilters id
|
Line | |
---|
1 | $(function() { |
---|
2 | $("#filters-list").sortable({'cursor':'move'}); |
---|
3 | $("#filters-list tr").hover(function () { |
---|
4 | $(this).css({'cursor':'move'}); |
---|
5 | }, function () { |
---|
6 | $(this).css({'cursor':'auto'}); |
---|
7 | }); |
---|
8 | $('#filters-list-form').submit(function() { |
---|
9 | var order=[]; |
---|
10 | $("#filters-list tr td input.position").each(function() { |
---|
11 | order.push(this.name.replace(/^f_order\[([^\]]+)\]$/,'$1')); |
---|
12 | }); |
---|
13 | $("input[name=filters_order]")[0].value = order.join(','); |
---|
14 | return true; |
---|
15 | }); |
---|
16 | $("#filters-list tr td input.position").hide(); |
---|
17 | $("#filters-list tr td.handle").addClass('handler'); |
---|
18 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.