From d951d9f1c342e33df273328dd66ddb8d7fbea843 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: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js | 6 +++++- koha-tmpl/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 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, { -- 2.0.0.rc2