From 475057a33c8e1b76b0ae84bce995fbe80e51b319 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 --- .../intranet-tmpl/prog/en/js/pages/circulation.js | 6 +++++- .../prog/en/modules/members/moremember.tt | 3 +++ 2 files changed, 8 insertions(+), 1 deletions(-) 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 489403f..aa3fd43 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 bb4b97e..d6b95f8 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, { -- 1.7.2.5