Module

Archived
Forum
(read-only)

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
tansel

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
# 1
Developer
Yuri Salimovskiy

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
# 2
tansel

Thanks Yuri,