﻿jQuery.extend({
    showLoad: function (content) {
        $.jBox.tip(content, 'loading');
    },
    closeLoad: function (content) {
        setTimeout(function () {
            if (content) { $.jBox.tip(content, 'success'); }
            else { $.jBox.closeTip(); }
        }, 500);
    },
    showTips: function (content, time) {
        if (time) {
            $.jBox.tip(content, 'error', { timeout: time });
        } else {
            $.jBox.tip(content, 'error', { timeout: '1500' });
        }
    },
    showError: function (content, config) {
        if (config) {
            $.jBox.tip(content, 'error', config);
        } else {
            $.jBox.tip(content, 'error');
        }
    },
    confirms: function (content, title, submits) {
        if (!content) { content = "确定要删除数据吗?"; }
        if (!title) { title = "提示"; }
        $.jBox.confirm(content, title, submits, { buttons: { '是': true, '否': false} });
    },
    showIframe: function (url,title) {
        $.jBox("get:" + url, {
            title: title,
            width: 500,
            height: 550,
            top:"5%",
            buttons: { '关闭': true }
        });
    }
});
//(function () { 
//    art.dialog.data("GetNewsListHtml",function(val){
//        GetNewsListHtml(val);
//    });
//    art.dialog.data("GetNewsListHtml",function(val){
//        GetWebUserListHtml(val);
//    });
//} ());
