Dotclear

source: admin/js/_comment.js @ 3936:4ae4c187b41e

Revision 3936:4ae4c187b41e, 375 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Don't presume about jsToolBar existence!

Line 
1/*global $, dotclear, jsToolBar */
2'use strict';
3
4$(function() {
5  if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) {
6          const tbComment = new jsToolBar(document.getElementById('comment_content'));
7          tbComment.draw('xhtml');
8     }
9
10     $('#comment-form input[name="delete"]').click(function() {
11          return window.confirm(dotclear.msg.confirm_delete_comment);
12     });
13});
Note: See TracBrowser for help on using the repository browser.

Sites map