From 07cd5cbde853c647b107d91296289ed811318dd2 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 1 Jul 2014 13:54:54 -0400 Subject: [PATCH] Bug 11703 [QA Followup] - Allow keyboard navigation of tabs Signed-off-by: Britta Cramer Signed-off-by: Christopher Brannon --- koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js | 6 +++++- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js index 489403f10a..aa3fd43b6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js @@ -8,7 +8,11 @@ $(document).ready(function() { return false; }); - $('#patronlists').tabs(); + $('#patronlists').tabs({ + activate: function( event, ui ) { + $('#'+ui.newTab.context.id).click(); + } + }); $("#messages ul").after(""+MSG_ADD_MESSAGE+""); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index bb4b97e74f..d6b95f8680 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -41,6 +41,9 @@ $(document).ready(function() { if ( oTable.length > 0 ) { oTable.fnAdjustColumnSizing(); } + }, + "activate": function( event, ui ) { + $('#'+ui.newTab.context.id).click(); } } ); $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, { -- 2.39.5