//jQuery animate admin test pages function testAnim(x) { jQuery("#td-animated-image").removeClass().addClass(x + " animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function(){ jQuery(this).removeClass(); }); }; function changeImage() { var newimage = jQuery("#loginimage").val(); jQuery("#animated-em-your-image").attr("src", newimage); jQuery("#animated-em-dynamic-text").contents().replaceWith("Your Image →"); } jQuery(".js--animations").change(function () { var anim = jQuery(this).val(); var timedelay = jQuery("#animation-delay").val(); setTimeout(function () { testAnim(anim) }, timedelay); }); jQuery('#upload_logo_button').click(function() { tb_show('Upload a logo', wpAdmin.url + '/media-upload.php?referer=site-settings&type=image&TB_iframe=true&post_id=0', false); return false; }); window.send_to_editor = function(html) { if ( jQuery(html).attr('href') ){ image_url = jQuery(html).attr('href');//added link } else { image_url = jQuery(html).attr('src');//insert post button } jQuery('#loginimage').val(image_url); tb_remove(); changeImage(); }