Added JS confirmation for photo deletion.
This commit is contained in:
parent
d470d49c48
commit
71f1b8001b
2 changed files with 18 additions and 1 deletions
14
webapp/web/js/imageUpload/confirmPhotoDeletion.js
Normal file
14
webapp/web/js/imageUpload/confirmPhotoDeletion.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
function delete_photo(passUrl) {
|
||||
|
||||
var delete_photo_answer = confirm ("Are you sure you want to delete your photo?");
|
||||
|
||||
if (delete_photo_answer){
|
||||
window.open(passUrl);
|
||||
}
|
||||
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue