Skip to content

Commit

Permalink
Merge branch 'dev-oe' of https://github.com/oceanwp/ocean-extra into …
Browse files Browse the repository at this point in the history
…dev-oe
  • Loading branch information
eramits committed Aug 27, 2020
2 parents e6341b3 + 5fac2b3 commit 9b0b1b2
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 @@ -127,8 +127,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 @@ -426,4 +428,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 @@ -175,8 +175,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 @@ -580,4 +582,4 @@ public function colors( $args, $instance ) {

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

0 comments on commit 9b0b1b2

Please sign in to comment.