NIHVIVO-772: I am using the class 'thumbnail' to delete the thumbnail instead of class delete.
This commit is contained in:
parent
2e466a82c4
commit
8ad5417253
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ $(document).ready(function(){
|
||||||
$("#photoUploadContainer").removeClass("hidden");
|
$("#photoUploadContainer").removeClass("hidden");
|
||||||
|
|
||||||
// Confirmation alert for photo deletion
|
// 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?');
|
var answer = confirm('Are you sure you want to delete your photo?');
|
||||||
return answer;
|
return answer;
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,7 @@ ${stylesheets.addFromTheme("/uploadImages.css")}
|
||||||
<div id="photoUploadDefaultImageContainer">
|
<div id="photoUploadDefaultImageContainer">
|
||||||
<h6>Current Photo</h6>
|
<h6>Current Photo</h6>
|
||||||
<img src="${thumbnailUrl}" width="115" />
|
<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">
|
<div id="photoUploadForm">
|
||||||
<form action="${formAction}" enctype="multipart/form-data" method="post">
|
<form action="${formAction}" enctype="multipart/form-data" method="post">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue