Skip to content

Option "click_outside_for_close" make the modal immediatly disappear #4

@gclijing

Description

@gclijing

When I use the pugin with the following options, the modal immediatly disappear when it should be displayed.

In HTML :

<div class="spot></div>

In Javascript file

$(document).ready(function(){
    $('.spot').click(function(event){
      var button = $(event.currentTarget);
      var stand_number = button.data("number");
      $.alert({
        title: '', 
        body: "Vous avez choisi le numéro " + stand_number, 
        is_delayed: false,
        close_after_calback_confirm: true,
        close_after_calback_decline: true,
        text_confirm: 'OK',
        text_decline: 'Close',
        click_outside_for_close: false,
        timer_modal: 50,
      });
    });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions