| @@ -218,9 +218,8 @@ | ||
| 218 | 218 | WPUltimatePostGrid.changedOrderBy(); |
| 219 | 219 | WPUltimatePostGrid.changedLimitPosts(); |
| 220 | 220 | WPUltimatePostGrid.initRules(); |
| 221 | 221 | WPUltimatePostGrid.changedFilterType(); |
| 222 | - WPUltimatePostGrid.changedShowCount(); | |
| 223 | 222 | WPUltimatePostGrid.changedMultiselect(); |
| 224 | 223 | WPUltimatePostGrid.changedLimitTerms(); |
| 225 | 224 | WPUltimatePostGrid.changedDropdownLabels(); |
| 226 | 225 | WPUltimatePostGrid.changedIsotopeFilterStyle(); |
| @@ -240,9 +239,8 @@ | ||
| 240 | 239 | jQuery('.wpupg_rule_field').on('change', function(e) { WPUltimatePostGrid.changedRuleField(jQuery(this).parents('tr').attr('data-rule')); }); |
| 241 | 240 | jQuery('.rule_container_wpupg_general_date').find('select').on('change', function(e) { WPUltimatePostGrid.changedDateRule(jQuery(this).parents('tr').attr('data-rule')); }); |
| 242 | 241 | jQuery('.wpupg-date').on('change', function(e) { WPUltimatePostGrid.changedDateRule(jQuery(this).parents('tr').attr('data-rule')); }); |
| 243 | 242 | jQuery('#wpupg_filter_type').on('change', function() { WPUltimatePostGrid.changedFilterType(); }); |
| 244 | - jQuery('#wpupg_filter_count').on('change', function() { WPUltimatePostGrid.changedShowCount(); }); | |
| 245 | 243 | jQuery('#wpupg_filter_multiselect').on('change', function() { WPUltimatePostGrid.changedMultiselect(); }); |
| 246 | 244 | jQuery('.wpupg_filter_taxonomy').on('change', function() { WPUltimatePostGrid.changedLimitTerms(); WPUltimatePostGrid.changedDropdownLabels(); }); |
| 247 | 245 | jQuery('#wpupg_filter_limit').on('change', function() { WPUltimatePostGrid.changedLimitTerms(); }); |
| 248 | 246 | jQuery('#wpupg_layout_mode').on('change', function() { WPUltimatePostGrid.changedLayoutMode(); }); |
| @@ -469,9 +467,9 @@ | ||
| 469 | 467 | WPUltimatePostGrid.changedFilterType = function() { |
| 470 | 468 | var filter_type = jQuery('#wpupg_filter_type').find(':selected').val(); |
| 471 | 469 | |
| 472 | 470 | // Hide & Show Filter Settings |
| 473 | - if(filter_type == 'none' || filter_type == 'text') { | |
| 471 | + if(filter_type == 'none') { | |
| 474 | 472 | jQuery('#wpupg_form_filter').find('tr').not('.wpupg_no_filter').hide(); |
| 475 | 473 | } else { |
| 476 | 474 | jQuery('#wpupg_form_filter').find('tr').not('.wpupg_no_filter').show(); |
| 477 | 475 | } |
| @@ -476,9 +474,9 @@ | ||
| 476 | 474 | jQuery('#wpupg_form_filter').find('tr').not('.wpupg_no_filter').show(); |
| 477 | 475 | } |
| 478 | 476 | |
| 479 | 477 | // Premium only filters |
| 480 | - if(filter_type == 'dropdown' || filter_type == 'text') { | |
| 478 | + if(filter_type == 'dropdown') { | |
| 481 | 479 | WPUltimatePostGrid.checkPremiumFeatures('filter_type', true); |
| 482 | 480 | } else { |
| 483 | 481 | WPUltimatePostGrid.checkPremiumFeatures('filter_type', false); |
| 484 | 482 | } |
| @@ -492,18 +490,8 @@ | ||
| 492 | 490 | } |
| 493 | 491 | |
| 494 | 492 | WPUltimatePostGrid.changedLimitTerms(); |
| 495 | 493 | WPUltimatePostGrid.changedDropdownLabels(); |
| 496 | -}; | |
| 497 | - | |
| 498 | -WPUltimatePostGrid.changedShowCount = function() { | |
| 499 | - var show_count = jQuery('#wpupg_filter_count').is(':checked'); | |
| 500 | - | |
| 501 | - if(show_count) { | |
| 502 | - WPUltimatePostGrid.checkPremiumFeatures('show_count', true); | |
| 503 | - } else { | |
| 504 | - WPUltimatePostGrid.checkPremiumFeatures('show_count', false); | |
| 505 | - } | |
| 506 | 494 | }; |
| 507 | 495 | |
| 508 | 496 | WPUltimatePostGrid.changedMultiselect = function() { |
| 509 | 497 | var multiselect = jQuery('#wpupg_filter_multiselect').is(':checked'); |