Skip to content

Commit

Permalink
Bootstrap 3 compatiblity update - make use of the sFilterInput and
Browse files Browse the repository at this point in the history
sLengthSelect options in DataTables 1.10 to provide classes for hte two
form elements used by DataTables
  • Loading branch information
AllanJard committed Oct 9, 2013
1 parent e309988 commit 5752e4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions integration/bootstrap/3/dataTables.bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ div.dataTables_filter label {
float: right;
}

div.dataTables_filter input {
width: 16em;
}

div.dataTables_info {
padding-top: 8px;
}
Expand Down
4 changes: 3 additions & 1 deletion integration/bootstrap/3/dataTables.bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ $.extend( true, $.fn.dataTable.defaults, {

/* Default class modification */
$.extend( $.fn.dataTableExt.oStdClasses, {
"sWrapper": "dataTables_wrapper form-inline"
"sWrapper": "dataTables_wrapper form-inline",
"sFilterInput": "form-control",
"sLengthSelect": "form-control"
} );


Expand Down

0 comments on commit 5752e4c

Please sign in to comment.