From 1880961ea77ba60d1055595d5c9976af33e64b15 Mon Sep 17 00:00:00 2001 From: biztechc Date: Wed, 22 Nov 2017 12:27:07 +0000 Subject: [PATCH] Change into file for searching related issue --- wp-jquery-datatable.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-jquery-datatable.php b/wp-jquery-datatable.php index 015713c..ab7dceb 100644 --- a/wp-jquery-datatable.php +++ b/wp-jquery-datatable.php @@ -280,8 +280,8 @@ function wp_jdt_shortcode( $atts, $content = "" ) { $wp_jdt_script .= "jQuery(document).ready(function() { \n"; $wp_jdt_script .= "jQuery('#$atts[id]').DataTable({ \n"; - $wp_jdt_script .= "'info': '$atts[info]', \n"; - $wp_jdt_script .= "'paging': '$atts[paging]', \n"; + $wp_jdt_script .= "'info': $atts[info], \n"; + $wp_jdt_script .= "'paging': $atts[paging], \n"; if($atts['page_length'] > 0) { $wp_jdt_script .= "'pageLength': $atts[page_length], \n"; } @@ -290,10 +290,10 @@ function wp_jdt_shortcode( $atts, $content = "" ) { } $wp_jdt_script .= "'pagingType': '$atts[paging_type]', \n"; - $wp_jdt_script .= "'bLengthChange': '$atts[b_length_change]', \n"; - $wp_jdt_script .= "'ordering': '$atts[ordering]', \n"; + $wp_jdt_script .= "'bLengthChange': $atts[b_length_change], \n"; + $wp_jdt_script .= "'ordering': $atts[ordering], \n"; $wp_jdt_script .= "'order': [$atts[order_row_number],'$atts[order_row_number_sort]'], \n"; - $wp_jdt_script .= "'searching': '$atts[searching]', \n"; + $wp_jdt_script .= "'searching': $atts[searching], \n"; $wp_jdt_script .= "} ); \n"; $wp_jdt_script .= "jQuery('#$atts[id]_wrapper select').prepend('').val('');