Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function yasrSnippetSelect(postid, nonceSnippet) {
- var reviewtype = jQuery('#yasr-choose-reviews-types-list').find(":selected").text();
- if (reviewtype == 'Place') {
- jQuery('#yasr-additional-info-localbusiness').show();
- jQuery('#yasr-additional-info-recipe').hide();
- }
- if (reviewtype == 'Recipe') {
- jQuery('#yasr-additional-info-recipe').show();
- jQuery('#yasr-additional-info-localbusiness').hide();
- }
- jQuery('#yasr-choose-reviews-types-list').on('change', function() {
- jQuery('.yasr-additional-info-rich-snippet').show();
- reviewtype = jQuery('#yasr-choose-reviews-types-list').val()
- if (reviewtype == 'Place') {
- jQuery('#yasr-additional-info-localbusiness').show();
- jQuery('#yasr-additional-info-recipe').hide();
- }
- if (reviewtype == 'Recipe') {
- jQuery('#yasr-additional-info-recipe').show();
- jQuery('#yasr-additional-info-localbusiness').hide();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement