Javascript confirmjs弹出式背景动画在firefox中不起作用
我正在开发Jquery确认js弹出窗口。背景动画在firefox最新版本中不起作用。我调试了jquery-confirm.js插件文件,发现在单击背景空间时没有触发click事件。代码存在于“jquery confirm.js”插件中,我只是添加了我发现问题的引用。有人能帮我吗?插件中的默认代码:Javascript confirmjs弹出式背景动画在firefox中不起作用,javascript,jquery,Javascript,Jquery,我正在开发Jquery确认js弹出窗口。背景动画在firefox最新版本中不起作用。我调试了jquery-confirm.js插件文件,发现在单击背景空间时没有触发click事件。代码存在于“jquery confirm.js”插件中,我只是添加了我发现问题的引用。有人能帮我吗?插件中的默认代码: $(document).on('click','.jconfirm-open',function(e){ if(!that.boxClicked){`
$(document).on('click','.jconfirm-open',function(e){
if(!that.boxClicked){`
var buttonName = false;
var shouldClose = false;
var str;
if(typeof that.backgroundDismiss === 'function')
str = that.backgroundDismiss();
else
str = that.backgroundDismiss;
if(typeof str === 'string' && typeof that.buttons[str] !== 'undefined'){
buttonName = str;
shouldClose = false;
}else if(typeof str === 'undefined' || !!(str) === true){
shouldClose = true;
}else{
shouldClose = false;
}
if(buttonName){
var btnResponse = that.buttons[buttonName].action.apply(that);
shouldClose = (typeof btnResponse === 'undefined') || !!(btnResponse);
}
if(shouldClose)
that.close();
else
that.hiLightModal();
}
that.boxClicked = false;
});
this.$scrollPane=this.$el.find('.jconfirm scrollPane')
最新修改代码:
$(document).on('click','.jconfirm-open',function(e){
if(!that.boxClicked){`
var buttonName = false;
var shouldClose = false;
var str;
if(typeof that.backgroundDismiss === 'function')
str = that.backgroundDismiss();
else
str = that.backgroundDismiss;
if(typeof str === 'string' && typeof that.buttons[str] !== 'undefined'){
buttonName = str;
shouldClose = false;
}else if(typeof str === 'undefined' || !!(str) === true){
shouldClose = true;
}else{
shouldClose = false;
}
if(buttonName){
var btnResponse = that.buttons[buttonName].action.apply(that);
shouldClose = (typeof btnResponse === 'undefined') || !!(btnResponse);
}
if(shouldClose)
that.close();
else
that.hiLightModal();
}
that.boxClicked = false;
});
上述类“.jquery scrollPane”单击事件在firefox浏览器中不起作用,尤其是在最新版本中。我尝试过使用父div类(检查弹出窗口,你会发现)并应用click事件,它在所有浏览器中都有效