Revision 3706:170617361020,
637 bytes
checked in by franck <carnet.franck.paul@…>, 8 years ago
(diff) |
use strict and no more linter warnings/errors as far as possible
|
Rev | Line | |
---|
[3706] | 1 | /*global $, dotclear */ |
---|
| 2 | 'use strict'; |
---|
| 3 | |
---|
[3402] | 4 | $(function() { |
---|
[3706] | 5 | $('.checkboxes-helpers').each(function() { |
---|
| 6 | dotclear.checkboxesHelpers(this, undefined, '#form-blogs td input[type=checkbox]', '#form-blogs #do-action'); |
---|
| 7 | }); |
---|
| 8 | $('#form-blogs td input[type=checkbox]').enableShiftClick(); |
---|
| 9 | dotclear.condSubmit('#form-blogs td input[type=checkbox]', '#form-blogs #do-action'); |
---|
| 10 | $('#form-blogs').submit(function() { |
---|
| 11 | var action = $(this).find('select[name="action"]').val(); |
---|
| 12 | if (action == 'delete') { |
---|
| 13 | return window.confirm(dotclear.msg.confirm_delete_blog.replace('%s', $('input[name="blogs[]"]:checked').size())); |
---|
| 14 | } |
---|
| 15 | }); |
---|
[3402] | 16 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.