Revision 3709:c88e69474c34,
465 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
use strict and no more linter warnings/errors as far as possible, switch from inline js to separate loaded file
|
Line | |
---|
1 | /*global $, dotclear */ |
---|
2 | 'use strict'; |
---|
3 | |
---|
4 | $(function() { |
---|
5 | $('#edit-entry').onetabload(function() { |
---|
6 | if ($('p.ping-services').length > 0) { |
---|
7 | var p = $('<p></p>'); |
---|
8 | p.addClass('ping-services'); |
---|
9 | $('p.ping-services:last').after(p); |
---|
10 | dotclear.checkboxesHelpers($('p.ping-services:last').get(0), $('.check-ping-services')); |
---|
11 | } |
---|
12 | $('h5.ping-services').toggleWithLegend($('p.ping-services'),{ |
---|
13 | user_pref: 'dcx_ping_services', |
---|
14 | legend_click: true |
---|
15 | }); |
---|
16 | }); |
---|
17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.