added comments to javascript

This commit is contained in:
mb863 2010-07-13 18:08:25 +00:00
parent a53572a354
commit be6e85cf2e

View file

@ -2,13 +2,12 @@
$(document).ready(function(){
// upload form is hidden by default; use JavaScript to reveal
$("#photoUploadContainer").removeClass("hidden");
// Confirmation alert for photo deletion
$('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 delete your photo?');
// jQuery(this).attr('title') gets anchor title attribute
return answer;
});