Messaging
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy
Receiving ajax response after deleting bulletins
Support Request
tansel
|
Posted: 03 January 2014 01:42 AM |
|
|
|
Hi there,
Can you give me a code example for showing the result in modal popup when “Delete Bulletin” is clicked and confirmed?
Since there is no “form” element in this “view bulletin” method, I am a bit confused.
I already have ajax=“yes” in the tag.
Thanks in advance
|
|
|
Yuri Salimovskiy
|
Posted: 03 January 2014 04:53 AM |
# 1
|
|
Developer
|
Try something like this:
[removed] $('.bulletin_delete_link').click(function() { if (confirm('Are you sure you want to delete this?')) { $.get( $(this).attr('href'), function(data){ alert(data); } ); } } }); [removed]
If it does not work, you might need to remove
onclick="return confirm(\\''.$this->EE->lang->line('delete_bulletin_popup').'\\')"
from module file.
|
|
|
tansel
|
Posted: 03 January 2014 05:50 AM |
# 2
|
|
|
Thanks Yuri,
|
|
|