note deletion confirmation

This commit is contained in:
S34NW
2021-09-10 23:09:06 +01:00
parent f286927c07
commit ef2bd157c9
+3 -1
View File
@@ -982,7 +982,9 @@
else if(href_list["removenote"])
var/note_id = href_list["removenote"]
remove_note(note_id)
if(note_id)
if((alert("Do you really want to delete this note?","Note deletion confirmation", "Yes", "No") == "Yes") && note_id)
remove_note(note_id)
else if(href_list["editnote"])
var/note_id = href_list["editnote"]