NIHVIVO-577: Deleted js function

This commit is contained in:
mb863 2010-07-13 15:10:21 +00:00
parent 703a812cd5
commit dbd0346c0d

View file

@ -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;
});