![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/metacore/assets/js/ |
(function($) { "use strict"; jQuery(document).ready(function($){ if($('.cshero_upload_button').length >= 1) { window.cshero_uploadfield = ''; $('.cshero_upload_button').live('click', function() { window.cshero_uploadfield = $('.upload_field', $(this).parent()); tb_show('Upload', 'media-upload.php?type=file&TB_iframe=true', false); return false; }); $('.cshero_clear_button').click(function () { var clear_id = $(this).attr("data-id"); $("#"+clear_id+"").val(""); }) window.cshero_send_to_editor_backup = window.send_to_editor; window.send_to_editor = function(html) { if(window.cshero_uploadfield) { var file_url = $('img', html).attr('src'); if(file_url == undefined){ file_url = $("a", '<div>'+html+'<div>').attr("href"); } console.log(this); $(window.cshero_uploadfield).val(file_url); window.cshero_uploadfield = ''; tb_remove(); } else { window.cshero_send_to_editor_backup(html); } } } }); })(jQuery);