NIHVIVO-577: Deleted js function
This commit is contained in:
parent
703a812cd5
commit
dbd0346c0d
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue