From eaf4c89ee1b0874f5412483a3bf5cff37916b9b9 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 21 May 2020 09:43:21 +0000 Subject: [PATCH] Remove deprecated jQuery event shorthandlers --- .datatables-commit-sync | 2 +- media/js/dataTables.bootstrap.js | 2 +- media/js/dataTables.bootstrap.min.js | 2 +- media/js/dataTables.bootstrap4.js | 2 +- media/js/dataTables.bootstrap4.min.js | 2 +- media/js/dataTables.material.js | 2 +- media/js/dataTables.material.min.js | 4 ++-- media/js/dataTables.semanticui.js | 2 +- media/js/dataTables.semanticui.min.js | 2 +- media/js/dataTables.uikit.js | 2 +- media/js/dataTables.uikit.min.js | 2 +- media/js/jquery.dataTables.js | 4 ++-- media/js/jquery.dataTables.min.js | 6 +++--- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 32c344fd..0f63e575 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -ec00cd15d401b71e4e123691bac847360653044f +b15097cf5193462bf190f3e4198c7307c77b27c3 diff --git a/media/js/dataTables.bootstrap.js b/media/js/dataTables.bootstrap.js index f69acdc6..51075ce1 100644 --- a/media/js/dataTables.bootstrap.js +++ b/media/js/dataTables.bootstrap.js @@ -173,7 +173,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu ); if ( activeEl !== undefined ) { - $(host).find( '[data-dt-idx='+activeEl+']' ).focus(); + $(host).find( '[data-dt-idx='+activeEl+']' ).trigger('focus'); } }; diff --git a/media/js/dataTables.bootstrap.min.js b/media/js/dataTables.bootstrap.min.js index c38e32fb..0705076f 100644 --- a/media/js/dataTables.bootstrap.min.js +++ b/media/js/dataTables.bootstrap.min.js @@ -8,4 +8,4 @@ $jscomp.polyfill=function(a,b,c,e){if(b){c=$jscomp.global;a=a.split(".");for(e=0 (function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a,b,c,e){var d=a.fn.dataTable;a.extend(!0,d.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});a.extend(d.ext.classes, {sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});d.ext.renderer.pageButton.bootstrap=function(b,l,v,w,m,r){var k=new d.Api(b),x=b.oClasses,n=b.oLanguage.oPaginate,y=b.oLanguage.oAria.paginate||{},g,h,t=0,u=function(c,d){var e,l=function(b){b.preventDefault();a(b.currentTarget).hasClass("disabled")||k.page()==b.data.action||k.page(b.data.action).draw("page")}; var q=0;for(e=d.length;q",{"class":x.sPageButton+" "+h,id:0===v&&"string"===typeof f?b.sTableId+"_"+f:null}).append(a("", -{href:"#","aria-controls":b.sTableId,"aria-label":y[f],"data-dt-idx":t,tabindex:b.iTabIndex}).html(g)).appendTo(c);b.oApi._fnBindAction(p,{action:f},l);t++}}}};try{var p=a(l).find(c.activeElement).data("dt-idx")}catch(z){}u(a(l).empty().html('