Dotclear

Changeset 3936:4ae4c187b41e for plugins


Ignore:
Timestamp:
11/22/18 14:10:26 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Children:
3937:8783cf8c1236, 3949:47fa8f351f8a
Message:

Don't presume about jsToolBar existence!

Location:
plugins/widgets/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/js/dragdrop.js

    r3914 r3936  
    7575      if (!dotclear.widget_noeditor) { 
    7676        ui.helper.find('textarea:not(.noeditor)').each(function() { 
    77           if ($.isFunction(jsToolBar)) { 
     77          if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { 
    7878            const tbWidgetText = new jsToolBar(this); 
    7979            tbWidgetText.draw('xhtml'); 
  • plugins/widgets/js/widgets.js

    r3914 r3936  
    124124 
    125125  // HTML text editor 
    126   if ($.isFunction(jsToolBar)) { 
     126  if (typeof jsToolBar !== 'undefined' && $.isFunction(jsToolBar)) { 
    127127    $('#sidebarsWidgets textarea:not(.noeditor)').each(function() { 
    128128      let tbWidgetText = new jsToolBar(this); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map