jQuery(document).ready((function(){jQuery(document).on("click",".add_media",(function(e){e.preventDefault();var t=jQuery(this);jQuery("body.wp-admin").length;var d=jQuery(t).data("input");return jQuery(document).trigger("idfMediaPopup",d),wp.media.editor.send.attachment=function(e,t){jQuery(document.getElementById(d)).val(t.id);t.inputID=d,jQuery(document).trigger("idfMediaSelected",[t])},!1}))}));