diff --git a/webapp/web/js/imageUpload/imageUploadUtils.js b/webapp/web/js/imageUpload/imageUploadUtils.js index ead868254..cee6587cd 100644 --- a/webapp/web/js/imageUpload/imageUploadUtils.js +++ b/webapp/web/js/imageUpload/imageUploadUtils.js @@ -4,15 +4,10 @@ $(document).ready(function(){ $("#photoUploadContainer").removeClass("hidden"); - $('#photoUploadForm form').submit(function() { - if ($("#datafile").val() == '') { - alert('Please browse and select a photo.'); - return false; - } - }); $('a.delete').click(function(){ - var answer = confirm('Are you sure you want to '+ jQuery(this).attr('title') +'?' ); + // var answer = confirm('Are you sure you want to '+ jQuery(this).attr('title') +'?' ); + var answer = confirm('Are you sure you want to delete your photo?'); // jQuery(this).attr('title') gets anchor title attribute return answer; });