Skip to content

Commit

Permalink
Conflict issue oceanwp#5
Browse files Browse the repository at this point in the history
  • Loading branch information
omelsoft committed May 15, 2020
1 parent 3f059be commit d916bc9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions includes/widgets/about-me.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ public function print_scripts() {
( function( $ ){
$(document).ajaxSuccess(function(e, xhr, settings) {
var widget_id_base = 'ocean_about_me';
if ( settings.data.search( 'action=save-widget' ) != -1 && settings.data.search( 'id_base=' + widget_id_base) != -1 ) {
oceanwpSortServices();
if (typeof(settings.data) !== 'undefined' && typeof(settings.data.search) !== 'undefined') {
if ( settings.data.search( 'action=save-widget' ) !== 'undefined' && typeof(settings.data.search( 'id_base=' + widget_id_base)) !== 'undefined' ) {
oceanwpSortServices();
}
}
} );

Expand Down Expand Up @@ -372,4 +374,4 @@ public function form( $instance ) {

}
}
register_widget( 'Ocean_Extra_About_Me_Widget' );
register_widget( 'Ocean_Extra_About_Me_Widget' );
8 changes: 5 additions & 3 deletions includes/widgets/social.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ public function print_scripts() { ?>
( function( $ ){
$(document).ajaxSuccess(function(e, xhr, settings) {
var widget_id_base = 'ocean_social';
if ( settings.data.search( 'action=save-widget' ) != -1 && settings.data.search( 'id_base=' + widget_id_base) != -1 ) {
oceanwpSortServices();
if (typeof(settings.data) !== 'undefined' && typeof(settings.data.search) !== 'undefined') {
if ( settings.data.search( 'action=save-widget' ) !== 'undefined' && typeof(settings.data.search( 'id_base=' + widget_id_base)) !== 'undefined' ) {
oceanwpSortServices();
}
}
} );

Expand Down Expand Up @@ -529,4 +531,4 @@ public function colors( $args, $instance ) {

}
}
register_widget( 'Ocean_Extra_Social_Widget' );
register_widget( 'Ocean_Extra_Social_Widget' );

0 comments on commit d916bc9

Please sign in to comment.