Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/scripts/ext
File: widgets.js
( function($) {
[0] Fix | Delete
[1] Fix | Delete
$( document ).ready( function() {
[2] Fix | Delete
$( '.widget-liquid-right' ).append( et_pb_options.widget_info );
[3] Fix | Delete
[4] Fix | Delete
var $create_box = $( '#et_pb_widget_area_create' ),
[5] Fix | Delete
$widget_name_input = $create_box.find( '#et_pb_new_widget_area_name' ),
[6] Fix | Delete
$et_pb_sidebars = $( 'div[id^=et_pb_widget_area_]' );
[7] Fix | Delete
[8] Fix | Delete
$create_box.find( '.et_pb_create_widget_area' ).click( function( event ) {
[9] Fix | Delete
var $this_el = $(this);
[10] Fix | Delete
[11] Fix | Delete
event.preventDefault();
[12] Fix | Delete
[13] Fix | Delete
if ( $widget_name_input.val() === '' ) return;
[14] Fix | Delete
[15] Fix | Delete
$.ajax( {
[16] Fix | Delete
type: "POST",
[17] Fix | Delete
url: et_pb_options.ajaxurl,
[18] Fix | Delete
data:
[19] Fix | Delete
{
[20] Fix | Delete
action : 'et_pb_add_widget_area',
[21] Fix | Delete
et_admin_load_nonce : et_pb_options.et_admin_load_nonce,
[22] Fix | Delete
et_widget_area_name : $widget_name_input.val()
[23] Fix | Delete
},
[24] Fix | Delete
success: function( data ){
[25] Fix | Delete
$this_el.closest( '#et_pb_widget_area_create' ).find( '.et_pb_widget_area_result' ).hide().html( data ).slideToggle();
[26] Fix | Delete
}
[27] Fix | Delete
} );
[28] Fix | Delete
} );
[29] Fix | Delete
[30] Fix | Delete
$et_pb_sidebars.each( function() {
[31] Fix | Delete
if ( $(this).is( '#et_pb_widget_area_create' ) || $(this).closest( '.inactive-sidebar' ).length ) return true;
[32] Fix | Delete
[33] Fix | Delete
$(this).closest('.widgets-holder-wrap').find('.sidebar-name h2, .sidebar-name h3').before( '<a href="#" class="et_pb_widget_area_remove">' + et_pb_options.delete_string + '</a>' );
[34] Fix | Delete
[35] Fix | Delete
$( '.et_pb_widget_area_remove' ).click( function( event ) {
[36] Fix | Delete
var $this_el = $(this);
[37] Fix | Delete
[38] Fix | Delete
event.preventDefault();
[39] Fix | Delete
[40] Fix | Delete
$.ajax( {
[41] Fix | Delete
type: "POST",
[42] Fix | Delete
url: et_pb_options.ajaxurl,
[43] Fix | Delete
data:
[44] Fix | Delete
{
[45] Fix | Delete
action : 'et_pb_remove_widget_area',
[46] Fix | Delete
et_admin_load_nonce : et_pb_options.et_admin_load_nonce,
[47] Fix | Delete
et_widget_area_name : $this_el.closest( '.widgets-holder-wrap' ).find( 'div[id^=et_pb_widget_area_]' ).attr( 'id' )
[48] Fix | Delete
},
[49] Fix | Delete
success: function( data ){
[50] Fix | Delete
$( '#' + data ).closest( '.widgets-holder-wrap' ).remove();
[51] Fix | Delete
}
[52] Fix | Delete
} );
[53] Fix | Delete
[54] Fix | Delete
return false;
[55] Fix | Delete
} );
[56] Fix | Delete
} );
[57] Fix | Delete
} );
[58] Fix | Delete
[59] Fix | Delete
} )(jQuery);
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function