Dotclear

source: admin/js/_posts_actions.js @ 3880:e6d1f6d9d7df

Revision 3880:e6d1f6d9d7df, 530 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, usersList */
2'use strict';
3
4$(function() {
5  const new_auth_id = $('#new_auth_id');
6  if (new_auth_id.length) {
7    new_auth_id.autocomplete(usersList, {
8      delay: 1000,
9      matchSubset: true,
10      matchContains: true
11    });
12  }
13  $('#new_cat').toggleWithLegend($('#new_cat').parent().children().not('#new_cat'), {
14    // no cookie on new category as we don't use this every day
15    legend_click: true
16  });
17  dotclear.condSubmit('table.posts-list td input[type=checkbox]', 'input[type=submit]');
18});
Note: See TracBrowser for help on using the repository browser.

Sites map