简单模态关闭函数
我喜欢 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到 简单模态 OSX 样式对话框。将
overlayClose: true
更改为overlayClose: false
。Go to
Line 28
of the file "osx.js
" that is included in Simple Modal OSX Style Dialog. ChangeoverlayClose: true
tooverlayClose: false
.