From c6e574314bacc76dda57edca4bd4066d793fcfe7 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 18 Apr 2016 15:00:55 +0100 Subject: [PATCH] Fix - docs: Add `dt-init lengthChange` to `dt-init dom` related --- .datatables-commit-sync | 2 +- media/js/dataTables.semanticui.js | 4 +++- media/js/dataTables.semanticui.min.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 44da5eb1..fe5477a0 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -70d40ebb23538668caa6f2c674e8f5a08507108a +64f6904ad0a7f530e5d58aa1f83933fe3269d177 diff --git a/media/js/dataTables.semanticui.js b/media/js/dataTables.semanticui.js index 97f797ec..bc4db816 100644 --- a/media/js/dataTables.semanticui.js +++ b/media/js/dataTables.semanticui.js @@ -199,7 +199,9 @@ $(document).on( 'init.dt', function (e, ctx) { if ( $.fn.dropdown ) { var api = new $.fn.dataTable.Api( ctx ); - $( 'div.dataTables_length select', api.table().container() ).dropdown(); + $( 'div.dataTables_length select', api.table().container() ).dropdown( { + on: 'click' + } ); } } ); diff --git a/media/js/dataTables.semanticui.min.js b/media/js/dataTables.semanticui.min.js index cb60091e..32cd0dea 100644 --- a/media/js/dataTables.semanticui.min.js +++ b/media/js/dataTables.semanticui.min.js @@ -5,5 +5,5 @@ (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b,a,d){var e=b.fn.dataTable;b.extend(!0,e.defaults,{dom:"<'ui grid'<'row'<'eight wide column'l><'right aligned eight wide column'f>><'row dt-table'<'sixteen wide column'tr>><'row'<'seven wide column'i><'right aligned nine wide column'p>>>", renderer:"semanticUI"});b.extend(e.ext.classes,{sWrapper:"dataTables_wrapper dt-semanticUI",sFilter:"dataTables_filter ui input",sProcessing:"dataTables_processing ui segment",sPageButton:"paginate_button item"});e.ext.renderer.pageButton.semanticUI=function(h,a,r,s,j,m){var n=new e.Api(h),t=h.oClasses,k=h.oLanguage.oPaginate,u=h.oLanguage.oAria.paginate||{},f,g,o=0,p=function(a,d){var e,i,l,c,q=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&n.page()!=a.data.action&&n.page(a.data.action).draw("page")}; e=0;for(i=d.length;e",{"class":t.sPageButton+" "+g,id:0===r&&"string"===typeof c? -h.sTableId+"_"+c:null,href:"#","aria-controls":h.sTableId,"aria-label":u[c],"data-dt-idx":o,tabindex:h.iTabIndex}).html(f).appendTo(a),h.oApi._fnBindAction(l,{action:c},q),o++)}},i;try{i=b(a).find(d.activeElement).data("dt-idx")}catch(v){}p(b(a).empty().html('