Skip to content

Commit

Permalink
tviewer: allow custom delete message
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Nov 5, 2024
1 parent 24e7e96 commit 581f7da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/common/tools/tviewer/lib/tviewer.main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script language="JavaScript">

function confirmDelete()
function confirmDelete(msg="Are you sure you want to delete this entry?")
{
var agree=confirm("Are you sure you want to delete this entry?");
var agree=confirm(msg);
if (agree) return true;
else return false;
}
Expand Down

0 comments on commit 581f7da

Please sign in to comment.