Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/470.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript confirmjs弹出式背景动画在firefox中不起作用_Javascript_Jquery - Fatal编程技术网

Javascript confirmjs弹出式背景动画在firefox中不起作用

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){`

我正在开发Jquery确认js弹出窗口。背景动画在firefox最新版本中不起作用。我调试了jquery-confirm.js插件文件,发现在单击背景空间时没有触发click事件。代码存在于“jquery confirm.js”插件中,我只是添加了我发现问题的引用。有人能帮我吗?

插件中的默认代码:

$(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事件,它在所有浏览器中都有效