NIHVIVO-772: I am using the class 'thumbnail' to delete the thumbnail instead of class delete.

This commit is contained in:
mb863 2010-07-13 20:19:38 +00:00
parent 2e466a82c4
commit 8ad5417253
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ $(document).ready(function(){
$("#photoUploadContainer").removeClass("hidden");
// Confirmation alert for photo deletion
$('a.delete').click(function(){
$('a.thumbnail').click(function(){
var answer = confirm('Are you sure you want to delete your photo?');
return answer;
});

View file

@ -21,7 +21,7 @@ ${stylesheets.addFromTheme("/uploadImages.css")}
<div id="photoUploadDefaultImageContainer">
<h6>Current Photo</h6>
<img src="${thumbnailUrl}" width="115" />
<a class="delete" href="${deleteUrl}">Delete photo</a></div>
<a class="thumbnail" href="${deleteUrl}">Delete photo</a></div>
<div id="photoUploadForm">
<form action="${formAction}" enctype="multipart/form-data" method="post">