Created
January 8, 2018 22:06
-
-
Save djrmom/e70803a43e4a7ddf10401de6529d65b1 to your computer and use it in GitHub Desktop.
facetwp check FWP in js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function($) { | |
$(function() { | |
if ( 'undefined' !== typeof FWP ) { | |
// Make checkbox options semi-transparent | |
FWP.loading_handler = function(params) { | |
params.element.find('.facetwp-checkbox').css('opacity', 0.5); | |
} | |
} | |
}); | |
})(jQuery); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment