File Genie PHP Support Product Page
Doesn't need answer
Confirm delete for File Genie
Asked 12 years ago
1
has this question
12 years ago Willy Gelin posted:
Hi!Using File Genie with file delete, I need some kind of confirm before delete warning of security reasons.
How can I do that?
Thanks
Willy
Replies
Replied 12 years ago
12 years ago Teodor Kuduschiev replied:
Hello Willy,
Unfortunately there is no way to do this in the current version of the extension.
Unfortunately there is no way to do this in the current version of the extension.
Replied 12 years ago
12 years ago Willy Gelin replied:
Hello Teodor!
Do you mean impossible to do or not implemented?
People clicks pretty wildly around so there has to be some safety net.
/Willy
Do you mean impossible to do or not implemented?
People clicks pretty wildly around so there has to be some safety net.
/Willy
Replied 12 years ago
12 years ago Teodor Kuduschiev replied:
Hello,
I mean it is not possible. I will discuss this suggestion with our developers.
I mean it is not possible. I will discuss this suggestion with our developers.
Replied 12 years ago
12 years ago Willy Gelin replied:
Great!
Thank You
Willy
Thank You
Willy
Replied 12 years ago
12 years ago Willy Gelin replied:
Some Google and this javascript came up, seemes to work fine.
and in the delete link
/Willy
<script type="text/javascript"><!-- function confirmDel(q){ if(confirm(q)){ return true; } return false; } //--></script>
and in the delete link
<a href="<?php echo $bildfilm->getDeleteLink(); ?>" onclick="return confirmDel('Do you want to delete <?php echo $bildfilm->folderList("fileName"); ?>?');"><input name="delete" type="submit" id="delete" style="font-size: 9px" value="DELETE" /></a>
/Willy

Replied 12 years ago
12 years ago Jamie oates replied:
just what i was looking for, thx for the input Willy!

Replied 12 years ago
12 years ago Willy Gelin replied:
Youre welcome Jamie
