Changeset 3936:4ae4c187b41e for admin/js
- Timestamp:
- 11/22/18 14:10:26 (7 years ago)
- Branch:
- default
- Children:
- 3937:8783cf8c1236, 3949:47fa8f351f8a
- Location:
- admin/js
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_blog_pref.js
r3880 r3936 33 33 34 34 // HTML text editor 35 if ( $.isFunction(jsToolBar)) {35 if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { 36 36 $('#blog_desc').each(function() { 37 37 let tbWidgetText = new jsToolBar(this); -
admin/js/_category.js
r3880 r3936 5 5 dotclear.hideLockable(); 6 6 7 if ( $.isFunction(jsToolBar)) {7 if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { 8 8 const tbCategory = new jsToolBar(document.getElementById('cat_desc')); 9 9 tbCategory.draw('xhtml'); -
admin/js/_comment.js
r3880 r3936 3 3 4 4 $(function() { 5 if ($.isFunction(jsToolBar)) {5 if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { 6 6 const tbComment = new jsToolBar(document.getElementById('comment_content')); 7 7 tbComment.draw('xhtml'); -
admin/js/_index.js
r3915 r3936 60 60 $(function() { 61 61 function quickPost(f, status) { 62 if ( $.isFunction('jsToolBar') && (contentTb.getMode() == 'wysiwyg')) {62 if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar) && contentTb.getMode() == 'wysiwyg') { 63 63 contentTb.syncContents('iframe'); 64 64 } … … 96 96 $('#post_content', f).val(''); 97 97 $('#post_content', f).change(); 98 if ( $.isFunction('jsToolBar') && (contentTb.getMode() == 'wysiwyg')) {98 if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar) && contentTb.getMode() == 'wysiwyg') { 99 99 contentTb.syncContents('textarea'); 100 100 } … … 110 110 const f = $('#quick-entry'); 111 111 if (f.length > 0) { 112 if ( $.isFunction(jsToolBar)) {112 if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { 113 113 var contentTb = new jsToolBar($('#post_content', f)[0]); 114 114 contentTb.switchMode($('#post_format', f).val());
Note: See TracChangeset
for help on using the changeset viewer.