Added confirmation dialog before deleting an attachment
This commit is contained in:
1 parent
e41cb58950
commit
4c184eb83f
2 files changed
+9
-7
No files matched your search
+8
-6
@@ -47,9 +47,11 @@ function onReady()
|
||||
delete imReq;
|
||||
}
|
||||
|
||||
function deleteAtt(idx)
|
||||
{
|
||||
submitted = true;
|
||||
document.form1.smcmd.value='delatt'+idx;
|
||||
document.form1.submit();
|
||||
}
|
||||
function deleteAtt(idx, str)
|
||||
{
|
||||
if (confirm(str) == true) {
|
||||
submitted = true;
|
||||
document.form1.smcmd.value='delatt'+idx;
|
||||
document.form1.submit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user