Changeset 3936:4ae4c187b41e for admin/js/_index.js
- Timestamp:
- 11/22/18 14:10:26 (7 years ago)
- Branch:
- default
- Children:
- 3937:8783cf8c1236, 3949:47fa8f351f8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.