Dotclear

source: plugins/pings/js/post.js @ 3880:e6d1f6d9d7df

Revision 3880:e6d1f6d9d7df, 496 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  $('#edit-entry').onetabload(function() {
6    if ($('p.ping-services').length > 0) {
7      const 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.

Sites map