Skip to content
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

Ajax Bug #10

Closed
Alf21 opened this issue Apr 19, 2017 · 3 comments
Closed

Ajax Bug #10

Alf21 opened this issue Apr 19, 2017 · 3 comments
Labels

Comments

@Alf21
Copy link

Alf21 commented Apr 19, 2017

If using Ajax, this plugin 'crashes':

The backdrop (modal effect) wont disappear and the body still behave with overflow: hidden; ...
This happens in the following code:

      $.sweetModal.prompt('Why do you want to delete this picture?', 'Because...', 'Because it is doubled (#XXXX).', function(reason) {
        $.sweetModal('Test.');
        reason = reason.trim();
        if(reason && reason.length > 0) {
          suggestDelete(id, reason, { // AJAX request using PHPLiveX
            "onFinish": function(response, root) {
        	    $.sweetModal('Your suggestion was transmitted to the team.');
            }
          });
        }
      });

The Popup 'Test.' will appear after clicking ok but never the second one

@Alf21 Alf21 changed the title Ajax Ajax Bug Apr 19, 2017
@bluefirex
Copy link
Member

This is related to #9

@bluefirex bluefirex added the bug label Apr 28, 2017
bluefirex added a commit that referenced this issue May 27, 2017
@bluefirex
Copy link
Member

Fixed in edc7e51, released in v1.3.3

@Alf21
Copy link
Author

Alf21 commented May 28, 2017

Nice, everything works fine. Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants