made changes for photo upload: new icon alert, created page for those with javascript disable, restructure javascript files
This commit is contained in:
parent
b98db24a65
commit
e78d6923db
3 changed files with 45 additions and 8 deletions
27
webapp/web/js/imageUpload/imageUploadUtils.js
Normal file
27
webapp/web/js/imageUpload/imageUploadUtils.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
|
||||
/* comments */
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$("#photoUploadContainer").removeClass("hidden");
|
||||
|
||||
|
||||
$('#photoUploadForm form').submit(function() {
|
||||
if (form_passed.datafile.value == "") {
|
||||
alert ("Please browse and select a photo");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue