Skip to content

Commit

Permalink
chore: add submissions widget ID in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Jul 7, 2023
1 parent e69901c commit abd62a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/plugins/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ public function form_submissions_widget_content() {
const url = new URL(window.location.href);
url.searchParams.set('otter_form_widget_filter', value);
url.searchParams.set('otter_nonce', '<?php echo esc_attr( wp_create_nonce( 'otter_widget_nonce' ) ); ?>')

// go to the new url using the href
url.hash = '#otter_form_submissions_widget';

window.location.href = url.href;
})
}
Expand Down

0 comments on commit abd62a1

Please sign in to comment.