I have here a long list of jquery slide functions:
Different IDs but same behaviours.
Code:
/*DataTables*/
$(document).ready( function() {
$('#all-active-users').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#all-deactivated-users').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#all-ppmps').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#agency-users').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#all-ppmps-by-agency').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#ppmp-form').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#all-agencies').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#ppmp-uploaded-files').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
$(document).ready( function() {
$('#agency-types').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
What i want to know is how can I make it short and precise.
I tried something like this, but no luck:
$(document).ready( function() {
$('#all-active-users').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
$('#all-deactivated-users').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
} );
The codes are dead whenever I try to make it short.
Any workarounds will be appreciated. Thanks.