Revision 1563:f219d9220033,
736 bytes
checked in by Nicolas <nikrou77@…>, 12 years ago
(diff) |
Issue #1541: no combo box because only one action
deletion works without javascript (category that can received entries is not hidden)
|
Line | |
---|
1 | $(function() { |
---|
2 | if ($.fn['nestedSortable']!==undefined) { |
---|
3 | $('#categories ul li').css('cursor','move'); |
---|
4 | $('#save-set-order').prop('disabled',true).addClass('disabled'); |
---|
5 | $('#categories ul').nestedSortable({ |
---|
6 | listType: 'ul', |
---|
7 | items: 'li', |
---|
8 | placeholder: 'placeholder', |
---|
9 | update: function() { |
---|
10 | $('#categories_order').attr('value',JSON.stringify($('#categories ul').nestedSortable('toArray'))); |
---|
11 | $('#save-set-order').prop('disabled',false).removeClass('disabled'); |
---|
12 | } |
---|
13 | }); |
---|
14 | } |
---|
15 | |
---|
16 | $('.checkboxes-helpers').each(function() { |
---|
17 | dotclear.checkboxesHelpers(this); |
---|
18 | }); |
---|
19 | |
---|
20 | dotclear.categoriesActionsHelper(); |
---|
21 | |
---|
22 | |
---|
23 | $('form#reset-order').submit(function() { |
---|
24 | return window.confirm(dotclear.msg.confirm_reorder_categories); |
---|
25 | }); |
---|
26 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.