This topic is locked
[SOLVED]

 JavaScript: Delete Confirmation

5/10/2012 12:00:05 PM
PHPRunner General questions
T
Tricause author

Hello,
When a user deletes attempts to delete a record in PHPRunner generated output, they are greeted with a JavaScript confirm that asks whether or not they want to proceed.
I would like to know either whether this confirm function is launched (i.e. the source file) or preferably a way to modify the text in the confirm through the PHPRunner interface.
I am using a MySQL table to simplify my coding, but the end-user would be confused by the confirm question asking "Are you sure you want to delete this record?", because I am having these records actually tied to stored processes, showing the current memory used, cpu percentage, etc., and deleting a record activates a mechanism to kill a stored process; the user would likely not know that I am temporarily storing and refreshing this list in a MySQL table.
Thanks for any input.

C
cgphp 5/10/2012

The file is RunnerAll.js
The line is the following:

if(selBoxes.length==0||!confirm(Runner.lang.constants.TEXT_DELETE_CONFIRM)){return false;}
Admin 5/10/2012

And the message itself can be found in include/lang/English.js file.
Probably the best option for you is to create a custom button instead of standard 'Delete selected' and display your message there.