Changeset 2614:db6f6a1f4f25 for admin/js/_index.js
- Timestamp:
- 12/11/13 11:35:57 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_index.js
r1699 r2614 2 2 var f = $('#quick-entry'); 3 3 if (f.length > 0) { 4 var contentTb = new jsToolBar($('#post_content',f)[0]); 5 contentTb.switchMode($('#post_format',f).val()); 4 if ($.isFunction('jsToolBar')) { 5 var contentTb = new jsToolBar($('#post_content',f)[0]); 6 contentTb.switchMode($('#post_format',f).val()); 7 } 6 8 7 9 $('input[name=save]',f).click(function() { … … 21 23 22 24 function quickPost(f,status) { 23 if ( contentTb.getMode() == 'wysiwyg') {25 if ($.isFunction('jsToolBar') && (contentTb.getMode() == 'wysiwyg')) { 24 26 contentTb.syncContents('iframe'); 25 27 } … … 55 57 $('#post_title',f).val(''); 56 58 $('#post_content',f).val(''); 57 if ( contentTb.getMode() == 'wysiwyg') {59 if ($.isFunction('jsToolBar') && (contentTb.getMode() == 'wysiwyg')) { 58 60 contentTb.syncContents('textarea'); 59 61 }
Note: See TracChangeset
for help on using the changeset viewer.