【问题标题】:during ajax processing when we click ouside of popup then popup should not be closed在 ajax 处理期间,当我们单击弹出窗口外部时,不应关闭弹出窗口
【发布时间】:2017-07-06 07:05:20
【问题描述】:

我在弹出窗口上做 ajax 功能,在 ajax 功能期间,当我们点击弹出窗口外部时,不应关闭弹出窗口

我正在使用..

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

所以请建议我进行更改。

【问题讨论】:

  • 你可以使用 $('.edits-photo').modal('show'); 而不是切换和 $('.edits-photo').modal('hide');

标签: javascript jquery css ajax codeigniter


【解决方案1】:

尝试如下:

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

【讨论】:

  • 你检查了这个答案吗? @Webizz Technosoft
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-12-21
  • 2021-11-21
  • 2023-02-09
  • 1970-01-01
  • 2022-12-31
  • 2019-11-10
  • 1970-01-01
相关资源
最近更新 更多