-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete modal #251
Comments
Hi, I can confirm this issue. All given solutions in #178 are not solving this issue. Pascal |
Truth is, combining the proposed workarounds from issue #178 does actually work. |
@xhezairi Thanks for your response. I tried your fix but I still have the same problem: the modal is closing before the post-action could complete.
I think that the problem is that two events are fired at the same time when clicking the delete button. The .close_popup event is obviously executed faster than the deleteForm AJAX-request and therefore the AJAX-request will never be sumbitted. |
@pascal08 Did you update your delete.blade.php? See I ditched the close_popup class from Delete button, and in addition to that I've also put the respective action. |
@xhezairi Oh, my bad. I forgot to delete the close-popup class from the delete button. Now it's working fine. Thanks a lot for your help! Much appreciated. |
It doesn't work for me... This is my delete.blade.php:
And here is the script in modal.blade.php:
The popup closes but the table is not refreshed tho... |
@asivaneswaran is this @if (isset($dish)) returning true? I'm just trying to think where the problem is. |
It returns 1 ( so true ).... |
I'm curious how you got it to return 1 instead of ture, for a second there I thought isset() should return true. |
The action is correct. |
So what is actually happening when you click Delete? |
The modal closes but the dish is not deleted... |
You have to excuse me on this, silly question I know, but have you set your delete() methods accordingly?! Dish Controller Dish Model |
EDIT: NVM, I fixed the not found. But it's still not working... I have the same issue as before. |
I run out of suggestions, sorry. Can't say much without knowing the contents of your Dish model and controller. |
Here is my controller:
And I declared this in my routes;
Right now, I took out the dd($dish) and now I am getting this error: {"error":{"type":"Symfony\Component\HttpKernel\Exception\NotFoundHttpException","message":"","file":"C:\wamp\www\ecole\vendor\laravel\framework\src\Illuminate\Routing\Router.php","line":1366}} |
Can you provide the full code of your routes.php, and Dish Model. |
Routes:
|
Closing this as a duplicate. Soon this code will be replaced with Bootstrap 3 modal instead of the crappy iframe. Closing for now. Look for updates this week. |
Is this fixed ? |
Hi,
The delete modal seems to be not working.
Everytime I try to delete a role, the popup closes when I click the button but it doesn't delete anything... it's just like if the redirect via post never happens...
Thanks,
Ara
The text was updated successfully, but these errors were encountered: