Код по умолчанию в плагине:
this. $ ScrollPane = this. $ El.find ('. Jconfirm-scrollpane');
this.$scrollPane.click(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;
});
Последний измененный код:
$(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, и оно работало во всех браузерах.