Dotclear

source: plugins/dcLegacyEditor/js/jsToolBar/popup_posts.js @ 3880:e6d1f6d9d7df

Revision 3880:e6d1f6d9d7df, 391 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 $ */
2'use strict';
3
4$(function() {
5     $('#link-insert-cancel').click(function() {
6          window.close();
7     });
8
9     $('#form-entries tr>td.maximal>a').click(function() {
10          // Get post_id
11          const tb = window.opener.the_toolbar;
12          const data = tb.elements.link.data;
13
14          data.href = tb.stripBaseURL($(this).attr('title'));
15
16          tb.elements.link.fncall[tb.mode].call(tb);
17          window.close();
18     });
19});
Note: See TracBrowser for help on using the repository browser.

Sites map