11cb6f0a by Jeremy Groot

fix to postal code search tool

1 parent fc1c8034
...@@ -24546,6 +24546,7 @@ ...@@ -24546,6 +24546,7 @@
24546 // import DataTable from 'datatables.net-dt'; 24546 // import DataTable from 'datatables.net-dt';
24547 24547
24548 (function ($) { 24548 (function ($) {
24549 if ($('.postal-search-data').val()) {
24549 var list = JSON.parse($('.postal-search-data').val()); 24550 var list = JSON.parse($('.postal-search-data').val());
24550 const fuseOptions = { 24551 const fuseOptions = {
24551 // isCaseSensitive: false, 24552 // isCaseSensitive: false,
...@@ -24613,6 +24614,7 @@ ...@@ -24613,6 +24614,7 @@
24613 } 24614 }
24614 } 24615 }
24615 }); 24616 });
24617 }
24616 })(jQuery); 24618 })(jQuery);
24617 24619
24618 function checkOffsetForTopper() { 24620 function checkOffsetForTopper() {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -3,6 +3,7 @@ import Fuse from 'fuse.js' ...@@ -3,6 +3,7 @@ import Fuse from 'fuse.js'
3 3
4 (function( $ ) { 4 (function( $ ) {
5 5
6 if($('.postal-search-data').val()) {
6 7
7 var list = JSON.parse($('.postal-search-data').val()); 8 var list = JSON.parse($('.postal-search-data').val());
8 9
...@@ -87,4 +88,6 @@ import Fuse from 'fuse.js' ...@@ -87,4 +88,6 @@ import Fuse from 'fuse.js'
87 88
88 }); 89 });
89 90
91 }
92
90 }( jQuery )); 93 }( jQuery ));
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -66,7 +66,7 @@ function theme_broker_enqueue_scripts() ...@@ -66,7 +66,7 @@ function theme_broker_enqueue_scripts()
66 // } 66 // }
67 67
68 // wp_enqueue_script('icheck', get_bloginfo('template_url') . '/scripts/icheck.min.js', [], "0.0.1", true); 68 // wp_enqueue_script('icheck', get_bloginfo('template_url') . '/scripts/icheck.min.js', [], "0.0.1", true);
69 wp_enqueue_script('main-js', get_bloginfo('template_url') . '/dev/js/theme.min.js?v=1.1611', [], filemtime(get_bloginfo('template_url') . '/dev/js/theme.min.js'), true); 69 wp_enqueue_script('main-js', get_bloginfo('template_url') . '/dev/js/theme.min.js?v=1.1612', [], filemtime(get_bloginfo('template_url') . '/dev/js/theme.min.js'), true);
70 // wp_enqueue_script('script', get_bloginfo('template_url') . '/scripts/script.js', [], "0.0.12", true); 70 // wp_enqueue_script('script', get_bloginfo('template_url') . '/scripts/script.js', [], "0.0.12", true);
71 wp_enqueue_style('main-css', get_bloginfo('template_url') . '/dev/css/theme.min.css?v=1.1', [], filemtime(get_bloginfo('template_url') . '/dev/css/theme.min.css')); 71 wp_enqueue_style('main-css', get_bloginfo('template_url') . '/dev/css/theme.min.css?v=1.1', [], filemtime(get_bloginfo('template_url') . '/dev/css/theme.min.css'));
72 72
......