Added JS confirmation for photo deletion.

This commit is contained in:
mb863 2010-07-02 19:18:44 +00:00
parent d470d49c48
commit 71f1b8001b
2 changed files with 18 additions and 1 deletions

View 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;
}
}