| 636 | | $action_url = PW_SECUREPLUGINURL . '/' . PW_PLUGIN . '/login/infocard-delete.php'; |
|---|
| 637 | | //return '<a href="' . wp_nonce_url($action_url . '?card=' . $cardhash) |
|---|
| 638 | | return '<a href="\'' |
|---|
| 639 | | . '" onclick="confirm(' |
|---|
| 640 | | . js_escape(sprintf(__("You are about to delete an information card with the handle of '%s'.\n'Cancel' to stop, 'OK' to delete."), $cardhandle)) |
|---|
| 641 | | //. '\'test\'' |
|---|
| 642 | | . '\');">' . __('Delete') . '</a> '; |
|---|
| 643 | | //return PW_SECUREPLUGINURL . '/' . PW_PLUGIN . '/login/infocard-newcard.php'; |
|---|
| | 634 | ?> |
|---|
| | 635 | <script type="text/javascript"> |
|---|
| | 636 | function confirmSubmit() { |
|---|
| | 637 | if (confirm("<?php echo "Are you sure you want to delete an information card with the handle of ".$cardhandle."?";?>")) |
|---|
| | 638 | return true ; |
|---|
| | 639 | else |
|---|
| | 640 | return false ; |
|---|
| | 641 | } |
|---|
| | 642 | </script> |
|---|
| | 643 | <?php |
|---|
| | 644 | $action_url = PW_SECUREPLUGINURL . '/pwlib/processing/infocard-delete.php'; |
|---|
| | 645 | return '<a href="' . wp_nonce_url($action_url . '?card=' . $cardhash . '&action=deletecard') |
|---|
| | 646 | . '" onclick="return confirmSubmit();">Delete</a>'; |
|---|
| | 647 | //return '<a href="' . $action_url . '" onclick="return confirmSubmit();">Delete</a>'; |
|---|