NET餐厅管理系统前端js-dwz.dialog切换当前层

(function($){
    $.pdialog = {
        _op:{height:300, width:580, minH:40, minW:50, total:20, max:false, mask:false, resizable:true, drawable:true, maxable:true,minable:true,fresh:true},
        _current:null,
        _zIndex:42,
        getCurrent:function(){
            return this._current;
        },
        reload:function(url, options){
            var op = $.extend({data:{}, dialogId:"", callback:null}, options);
            var dialog = (op.dialogId && $("body").data(op.dialogId)) || this._current;
            if (dialog){
                var jDContent = dialog.find(".dialogContent");
                jDContent.ajaxUrl({
                    type:"POST", url:url, data:op.data, callback:function(response){
                        jDContent.find("[layoutH]").layoutH(jDContent);
                        $(".pageContent", dialog).width($(dialog).width()-14);
                        $(":button.close", dialog).click(function(){
                            $.pdialog.close(dialog);
                            return false;
                        });
                        if ($.isFunction(op.callback)) op.callback(response);
                    }
                });
            }
        },

/**
         * 切换当前层
         * @param {Object} dialog
         */
        switchDialog:function(dialog) {
            var index = $(dialog).css("zIndex");
            $.pdialog.attachShadow(dialog);
            if($.pdialog._current) {
                var cindex = $($.pdialog._current).css("zIndex");
                $($.pdialog._current).css("zIndex", index);
                $(dialog).css("zIndex", cindex);
                $("div.shadow").css("zIndex", cindex - 1);
                $.pdialog._current = dialog;
            }
            $.taskBar.switchTask(dialog.data("id"));
        },

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

m0_74456535

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值