-
Notifications
You must be signed in to change notification settings - Fork 13
AjaxDeleteView doesn't do anything #7
Comments
Hello, could you look at browser network console and show request and response headers and status code? |
I think I found something: I had removed the "modal-buttons" in your template, and put some buttons in my own templates. This works fine for fm-update , since it loads the template/form in the modal window. |
this did the trick: |
this is because of this https://github.com/FZambia/django-fm/blob/master/fm/static/fm/js/fm.js#L133 When you delete modal_buttons nothing triggers DELETE request, maybe using your own |
No, that is not what I mean :) As you can see in your demo, clicking Update creates a GET request to load the form content. So, it is not actually a bug, just a situation that comes up when people want to style their own form. |
my normal delete views are working, but when I add to the link
class="fm-delete" data-fm-head="Delete" data-fm-callback="reload"
and set my view to AjaxDeleteView , nothing happens.
I click the delete link, I see an empty modal window, but there isn't an ajax call to load the delete_confirm template. no error messages.
Other views are working fine (like AjaxUpdateView)
The text was updated successfully, but these errors were encountered: