Revision 3880:e6d1f6d9d7df,
288 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 | $('table.plugins form input[type=submit][name=delete]').click(function() { |
---|
6 | const l_name = $(this).parents('tr.line').find('td:first').text(); |
---|
7 | return window.confirm(dotclear.msg.confirm_delete_lang.replace('%s',l_name)); |
---|
8 | }); |
---|
9 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.