在ajax处理期间,当我们点击弹出窗口时,弹出窗口不应该关闭

时间:2017-07-06 07:05:20

标签: javascript jquery css ajax codeigniter

我在弹出窗口上执行ajax功能,在ajax功能期间,当我们点击弹出窗口外,弹出窗口不应该关闭

我正在使用..

$('.edits-photo').modal('toggle');

所以请告诉我这些变化。

1 个答案:

答案 0 :(得分:0)

尝试如下:

$( document ).ajaxStart(function() {
    $(".edits-photo").modal({
      escapeClose: false,
      clickClose: false,
      showClose: false
    });
});