Bug 11703 [QA Followup] - Allow keyboard navigation of tabs
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 1 Jul 2014 17:54:54 +0000 (13:54 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 3 Jul 2014 14:22:11 +0000 (11:22 -0300)
Signed-off-by: Britta Cramer <britta.cramer@inm-gmbh.de>
Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

index 489403f..aa3fd43 100644 (file)
@@ -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("<a href=\"#\" id=\"addmessage\">"+MSG_ADD_MESSAGE+"</a>");
 
index bb4b97e..d6b95f8 100644 (file)
@@ -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, {