简单模态关闭函数

发布于 2024-12-11 02:30:05 字数 129 浏览 5 评论 0原文

我喜欢 osx 版本的简单模式。但是,我想在打开的模式框中进行一些数据编辑。

现在,当用户在模式之外单击时,它将关闭。因此,如果用户不小心单击了模式的外部,他们的信息将会丢失。

单击模式外部时如何禁用关闭?谢谢!

I love the osx version of the simple modal. However, I would like to do some data editing in the opened modal box.

Now when the user clicked outside of the modal, it'll close. So if the user accidentally clicked the outside of the modal, their information will be lost.

How do I disable closing when click outside of the modal? thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅人 2024-12-18 02:30:05

转到 简单模态 OSX 样式对话框。将 overlayClose: true 更改为 overlayClose: false

Go to Line 28 of the file "osx.js" that is included in Simple Modal OSX Style Dialog. Change overlayClose: true to overlayClose: false.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文