mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-28 10:24:10 +01:00
Update: {search: 'removed'}
selector options optimisation
Merge pull request #119 from dagadbm/master
This commit is contained in:
parent
5cc3676e27
commit
5f5525b10d
@ -1 +1 @@
|
|||||||
df30fa791990745940f1c25b1b4f66c75f072b5a
|
57d78bd53527ac0d435a6a0ff6cae7fadb1e47be
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
|
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
|
||||||
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
|
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
|
||||||
<title>DataTables example - Foundation</title>
|
<title>DataTables example - Foundation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.min.css">
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.3/css/foundation.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="../../media/css/dataTables.foundation.css">
|
<link rel="stylesheet" type="text/css" href="../../media/css/dataTables.foundation.css">
|
||||||
<link rel="stylesheet" type="text/css" href="../resources/syntax/shCore.css">
|
<link rel="stylesheet" type="text/css" href="../resources/syntax/shCore.css">
|
||||||
<link rel="stylesheet" type="text/css" href="../resources/demo.css">
|
<link rel="stylesheet" type="text/css" href="../resources/demo.css">
|
||||||
@ -555,7 +555,7 @@ $(document).ready(function() {
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href=
|
<a href=
|
||||||
"https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.min.css">https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.min.css</a>
|
"https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.3/css/foundation.min.css">https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.3/css/foundation.min.css</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../../media/css/dataTables.foundation.css">../../media/css/dataTables.foundation.css</a>
|
<a href="../../media/css/dataTables.foundation.css">../../media/css/dataTables.foundation.css</a>
|
||||||
|
@ -54,9 +54,9 @@ $.extend( DataTable.ext.classes, {
|
|||||||
/* Set the defaults for DataTables initialisation */
|
/* Set the defaults for DataTables initialisation */
|
||||||
$.extend( true, DataTable.defaults, {
|
$.extend( true, DataTable.defaults, {
|
||||||
dom:
|
dom:
|
||||||
"<'row'<'small-6 columns'l><'small-6 columns'f>r>"+
|
"<'row grid-x'<'small-6 columns cell'l><'small-6 columns cell'f>r>"+
|
||||||
"t"+
|
"t"+
|
||||||
"<'row'<'small-6 columns'i><'small-6 columns'p>>",
|
"<'row grid-x'<'small-6 columns cell'i><'small-6 columns cell'p>>",
|
||||||
renderer: 'foundation'
|
renderer: 'foundation'
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
6
media/js/dataTables.foundation.min.js
vendored
6
media/js/dataTables.foundation.min.js
vendored
@ -3,6 +3,6 @@
|
|||||||
©2011-2015 SpryMedia Ltd - datatables.net/license
|
©2011-2015 SpryMedia Ltd - datatables.net/license
|
||||||
*/
|
*/
|
||||||
(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return d(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(a,b).$;return d(b,a,a.document)}:d(jQuery,window,document)})(function(d){var a=d.fn.dataTable,b=d('<meta class="foundation-mq"/>').appendTo("head");a.ext.foundationVersion=b.css("font-family").match(/small|medium|large/)?6:5;b.remove();d.extend(a.ext.classes,
|
(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return d(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(a,b).$;return d(b,a,a.document)}:d(jQuery,window,document)})(function(d){var a=d.fn.dataTable,b=d('<meta class="foundation-mq"/>').appendTo("head");a.ext.foundationVersion=b.css("font-family").match(/small|medium|large/)?6:5;b.remove();d.extend(a.ext.classes,
|
||||||
{sWrapper:"dataTables_wrapper dt-foundation",sProcessing:"dataTables_processing panel callout"});d.extend(!0,a.defaults,{dom:"<'row'<'small-6 columns'l><'small-6 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",renderer:"foundation"});a.ext.renderer.pageButton.foundation=function(b,l,r,s,e,i){var m=new a.Api(b),t=b.oClasses,j=b.oLanguage.oPaginate,u=b.oLanguage.oAria.paginate||{},f,h,g,v=5===a.ext.foundationVersion,q=function(a,n){var k,o,p,c,l=function(a){a.preventDefault();!d(a.currentTarget).hasClass("unavailable")&&
|
{sWrapper:"dataTables_wrapper dt-foundation",sProcessing:"dataTables_processing panel callout"});d.extend(!0,a.defaults,{dom:"<'row grid-x'<'small-6 columns cell'l><'small-6 columns cell'f>r>t<'row grid-x'<'small-6 columns cell'i><'small-6 columns cell'p>>",renderer:"foundation"});a.ext.renderer.pageButton.foundation=function(b,l,r,s,e,i){var m=new a.Api(b),t=b.oClasses,j=b.oLanguage.oPaginate,u=b.oLanguage.oAria.paginate||{},f,h,g,v=5===a.ext.foundationVersion,q=function(a,n){var k,o,p,c,l=function(a){a.preventDefault();
|
||||||
m.page()!=a.data.action&&m.page(a.data.action).draw("page")};k=0;for(o=n.length;k<o;k++)if(c=n[k],d.isArray(c))q(a,c);else{h=f="";g=null;switch(c){case "ellipsis":f="…";h="unavailable disabled";g=null;break;case "first":f=j.sFirst;h=c+(0<e?"":" unavailable disabled");g=0<e?"a":null;break;case "previous":f=j.sPrevious;h=c+(0<e?"":" unavailable disabled");g=0<e?"a":null;break;case "next":f=j.sNext;h=c+(e<i-1?"":" unavailable disabled");g=e<i-1?"a":null;break;case "last":f=j.sLast;h=c+(e<i-1?
|
!d(a.currentTarget).hasClass("unavailable")&&m.page()!=a.data.action&&m.page(a.data.action).draw("page")};k=0;for(o=n.length;k<o;k++)if(c=n[k],d.isArray(c))q(a,c);else{h=f="";g=null;switch(c){case "ellipsis":f="…";h="unavailable disabled";g=null;break;case "first":f=j.sFirst;h=c+(0<e?"":" unavailable disabled");g=0<e?"a":null;break;case "previous":f=j.sPrevious;h=c+(0<e?"":" unavailable disabled");g=0<e?"a":null;break;case "next":f=j.sNext;h=c+(e<i-1?"":" unavailable disabled");g=e<i-1?"a":
|
||||||
"":" unavailable disabled");g=e<i-1?"a":null;break;default:f=c+1,h=e===c?"current":"",g=e===c?null:"a"}v&&(g="a");f&&(p=d("<li>",{"class":t.sPageButton+" "+h,"aria-controls":b.sTableId,"aria-label":u[c],tabindex:b.iTabIndex,id:0===r&&"string"===typeof c?b.sTableId+"_"+c:null}).append(g?d("<"+g+"/>",{href:"#"}).html(f):f).appendTo(a),b.oApi._fnBindAction(p,{action:c},l))}};q(d(l).empty().html('<ul class="pagination"/>').children("ul"),s)};return a});
|
null;break;case "last":f=j.sLast;h=c+(e<i-1?"":" unavailable disabled");g=e<i-1?"a":null;break;default:f=c+1,h=e===c?"current":"",g=e===c?null:"a"}v&&(g="a");f&&(p=d("<li>",{"class":t.sPageButton+" "+h,"aria-controls":b.sTableId,"aria-label":u[c],tabindex:b.iTabIndex,id:0===r&&"string"===typeof c?b.sTableId+"_"+c:null}).append(g?d("<"+g+"/>",{href:"#"}).html(f):f).appendTo(a),b.oApi._fnBindAction(p,{action:c},l))}};q(d(l).empty().html('<ul class="pagination"/>').children("ul"),s)};return a});
|
||||||
|
Loading…
Reference in New Issue
Block a user