Revision 3936:4ae4c187b41e,
275 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
Don't presume about jsToolBar existence!
|
Rev | Line | |
---|
[3706] | 1 | /*global $, dotclear, jsToolBar */ |
---|
| 2 | 'use strict'; |
---|
| 3 | |
---|
[0] | 4 | $(function() { |
---|
[3706] | 5 | dotclear.hideLockable(); |
---|
[2566] | 6 | |
---|
[3936] | 7 | if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { |
---|
[3880] | 8 | const tbCategory = new jsToolBar(document.getElementById('cat_desc')); |
---|
[3706] | 9 | tbCategory.draw('xhtml'); |
---|
| 10 | } |
---|
[2566] | 11 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.