1046968c by Jeff Balicki

noResultsContainer

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 2bd5e87f
...@@ -16225,6 +16225,15 @@ li.additional_information_tab { ...@@ -16225,6 +16225,15 @@ li.additional_information_tab {
16225 display: none !important; 16225 display: none !important;
16226 } 16226 }
16227 16227
16228 #noResultsContainer {
16229 margin: auto;
16230 margin-top: 30px;
16231 margin-bottom: 30px;
16232 text-align: center;
16233 font-size: 20px;
16234 font-weight: bold;
16235 }
16236
16228 #resources.dataTable { 16237 #resources.dataTable {
16229 width: 100% !important; 16238 width: 100% !important;
16230 } 16239 }
......
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.
...@@ -39,6 +39,9 @@ function course_list(){ ...@@ -39,6 +39,9 @@ function course_list(){
39 echo course_card(get_the_ID()); 39 echo course_card(get_the_ID());
40 endwhile; ?> 40 endwhile; ?>
41 </div> 41 </div>
42 </div>
43 <div id="noResultsContainer">
44 <div>No results match this search.</div>
42 </div> 45 </div>
43 <?php endif; 46 <?php endif;
44 wp_reset_query(); 47 wp_reset_query();
......
...@@ -35150,6 +35150,11 @@ ...@@ -35150,6 +35150,11 @@
35150 }); 35150 });
35151 console.log('updateFilterCounts'); 35151 console.log('updateFilterCounts');
35152 console.log(index); 35152 console.log(index);
35153 if (itemElems == 0) {
35154 $('#msg-box').show();
35155 } else {
35156 $('#msg-box').hide();
35157 }
35153 if (index === 0) { 35158 if (index === 0) {
35154 $("#load-more").hide(); 35159 $("#load-more").hide();
35155 } else { 35160 } else {
......
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.
...@@ -21,7 +21,7 @@ jQuery(document).ready(function($) { ...@@ -21,7 +21,7 @@ jQuery(document).ready(function($) {
21 } 21 }
22 }); 22 });
23 23
24 24
25 25
26 // use value of search field to filter 26 // use value of search field to filter
27 var $quicksearch = $('#quicksearch').keyup(debounce(function() { 27 var $quicksearch = $('#quicksearch').keyup(debounce(function() {
...@@ -122,6 +122,13 @@ jQuery(document).ready(function($) { ...@@ -122,6 +122,13 @@ jQuery(document).ready(function($) {
122 }); 122 });
123 console.log('updateFilterCounts'); 123 console.log('updateFilterCounts');
124 console.log(index); 124 console.log(index);
125
126 if ( itemElems == 0 ) {
127 $('#msg-box').show();
128 }else{
129 $('#msg-box').hide();
130 }
131
125 if (index === 0) { 132 if (index === 0) {
126 133
127 $("#load-more").hide(); 134 $("#load-more").hide();
...@@ -192,4 +199,8 @@ jQuery(document).ready(function($) { ...@@ -192,4 +199,8 @@ jQuery(document).ready(function($) {
192 loadMore(counter); 199 loadMore(counter);
193 }); 200 });
194 201
202
203
204
205
195 }); 206 });
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -150,3 +150,11 @@ li.additional_information_tab { ...@@ -150,3 +150,11 @@ li.additional_information_tab {
150 } 150 }
151 } 151 }
152 152
153 #noResultsContainer{
154 margin: auto;
155 margin-top: 30px;
156 margin-bottom: 30px;
157 text-align: center;
158 font-size: 20px;
159 font-weight: bold;
160 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 Author: Tenzing Communications 5 Author: Tenzing Communications
6 Author URI: https://tenzingbrand.com 6 Author URI: https://tenzingbrand.com
7 Template: understrap 7 Template: understrap
8 Version: 1.1.0011 8 Version: 1.1.0012
9 License: GNU General Public License v2 or later 9 License: GNU General Public License v2 or later
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: understrap-child 11 Text Domain: understrap-child
......