Want create site? Find Free WordPress Themes and plugins.

//

// <![CDATA[

jQuery(document).ready(function() {
jQuery("#ihc_fileuploader_wrapp_9404 .ihc-file-upload").uploadFile({
onSelect: function (files) {
jQuery("#ihc_fileuploader_wrapp_9404 .ajax-file-upload-container").css("display", "block");
var check_value = jQuery("#ihc_upload_hidden_9404").val();
if (check_value!="" ){
alert("To add a new image please remove the previous one!");
return false;
}
return true;
},
url: "https://www.dojang.ca/wp-content/plugins/indeed-membership-pro/public/ajax-upload.php",
allowedTypes: "jpg,png,jpeg,gif",
fileName: "avatar",
maxFileSize: 1000000,
dragDrop: false,
showFileCounter: false,
showProgress: true,
onSuccess: function(a, response, b, c){
if (response){
var obj = jQuery.parseJSON(response);
jQuery("#ihc_upload_hidden_9404").val(obj.id);
jQuery("#ihc_fileuploader_wrapp_9404 .ihc-file-upload").prepend("

Remove

“);
jQuery(“#ihc_fileuploader_wrapp_9404 .ihc-file-upload”).prepend(“

“);
jQuery(“.ihc-no-avatar”).remove();
setTimeout(function(){
jQuery(“#ihc_fileuploader_wrapp_9404 .ajax-file-upload-container”).css(“display”, “none”);
}, 3000);
}
}
});
});

// ]]>

Upload

//