Skip to content

Commit 908e0b5

Browse files
authored
Merge pull request #1914 from Automattic/add/internal-settings-links
Allow for links on the settings page that references another tab
2 parents 83f93d2 + 513e6e1 commit 908e0b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

includes/admin/class-wp-job-manager-settings.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,13 @@ public function output() {
444444
</form>
445445
</div>
446446
<script type="text/javascript">
447+
jQuery('.nav-internal').click(function (e) {
448+
e.preventDefault();
449+
jQuery('.nav-tab-wrapper a[href="' + jQuery(this).attr('href') + '"]').click();
450+
451+
return false;
452+
});
453+
447454
jQuery('.nav-tab-wrapper a').click(function() {
448455
if ( '#' !== jQuery(this).attr( 'href' ).substr( 0, 1 ) ) {
449456
return false;

0 commit comments

Comments
 (0)