| Revision 3880:e6d1f6d9d7df,
639 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
|
Use let and const rather than var (ES2015/ES6), use template string where is more efficient
|
| Line | |
|---|
| 1 | /*global $, dotclear */ |
|---|
| 2 | 'use strict'; |
|---|
| 3 | |
|---|
| 4 | $(function() { |
|---|
| 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 | const 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 | }); |
|---|
| 16 | }); |
|---|
Note: See
TracBrowser
for help on using the repository browser.