jQuery(document).ready(function() { jQuery( ".arcon-radio" ).buttonset(); jQuery( '#arco_item_image_media' ).on( 'click', function() { tb_show('Full-size image or video', 'media-upload.php?type=image&TB_iframe=1'); window.send_to_editor = function( html ) { imgurl = jQuery( 'img',html ).attr( 'src' ); jQuery( '#arco_item_image' ).val(imgurl); tb_remove(); } return false; }); jQuery('#arcon_jqs').change(function(){show_animation_script_desc();}); show_animation_script_desc(); jQuery('#arcon_lightbox').change(function(){show_lightbox_script_desc();}); show_lightbox_script_desc(); }); function show_animation_script_desc() { if(jQuery('#arcon_jqs').val() == 'mixitup') { jQuery('#mixitup_about').show(); jQuery('#isotope_about').hide(); } if(jQuery('#arcon_jqs').val() == 'isotope') { jQuery('#mixitup_about').hide(); jQuery('#isotope_about').show(); } } function show_lightbox_script_desc() { if(jQuery('#arcon_lightbox').val() == 'colorbox') { jQuery('#colorbox_about').show(); jQuery('#fancybox_about').hide(); } if(jQuery('#arcon_lightbox').val() == 'fancybox') { jQuery('#colorbox_about').hide(); jQuery('#fancybox_about').show(); } }