[英]How to prevent more than one LightFace to appear?
Hi guys I am new to programming, especially MooTools. 嗨,大家好,我是编程新手,尤其是MooTools。 How do I prevent more than one LightFace from opening up?
如何防止打开多个LightFace?
The plugin is available here: http://davidwalsh.name/facebook-lightbox 该插件位于此处: http : //davidwalsh.name/facebook-lightbox
destroy it after completion of work with model. 用模型完成工作后销毁它。 example
例
keys: {
esc: function() {
var r=confirm("Are you sure, you want to do this?");
if (r==true){
this.close();
this.destroy();//this you need to do
$('overlay').setStyle('display', 'none');
}else{}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.