mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
BUGFIX: Added jquery live to delete ane and delete all submissions links
This commit is contained in:
parent
eec28bc82e
commit
5f6e9a9966
@ -62,7 +62,7 @@
|
|||||||
/**
|
/**
|
||||||
* Delete a given Submission from the form
|
* Delete a given Submission from the form
|
||||||
*/
|
*/
|
||||||
$("#userforms-submissions .deleteSubmission").click(function(event) {
|
$("#userforms-submissions .deleteSubmission").live('click',function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
var deletedSubmission = $(this);
|
var deletedSubmission = $(this);
|
||||||
@ -76,7 +76,7 @@
|
|||||||
/**
|
/**
|
||||||
* Delete all submissions and fade them out if successful
|
* Delete all submissions and fade them out if successful
|
||||||
*/
|
*/
|
||||||
$("#userforms-submissions .deleteAllSubmissions").click(function(event) {
|
$("#userforms-submissions .deleteAllSubmissions").live('click',function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
if (!confirm(ss.i18n._t('UserForms.CONFIRMDELETEALLSUBMISSIONS', 'All submissions will be permanently removed. Continue?'))) return false;
|
if (!confirm(ss.i18n._t('UserForms.CONFIRMDELETEALLSUBMISSIONS', 'All submissions will be permanently removed. Continue?'))) return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user