jQuery(document).ready(function(e){var t;e(".catchkathmandu_upload_image").click(function(n){n.preventDefault();title=e(this).val();this_selector=e(this);button_text=e(this).attr("ref");t=wp.media.frames.file_frame=wp.media({title:title,button:{text:button_text},multiple:false});t.on("select",function(){attachment=t.state().get("selection").first().toJSON();this_selector.prev().val(attachment.url)});t.open()})})