src/ZKEACMS.WebHost/wwwroot/js/admin.js

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*! http://www.zkea.net/
 * Copyright (c) ZKEASOFT. All rights reserved.
 * http://www.zkea.net/licenses */

$(function () {
    $(".accordion-group>a").click(function () {
        var className = 'active';
        var a = $(this);
        var div_inner = a.nextAll(".accordion-inner");
        if (a.hasClass(className)) {
            a.removeClass(className);
            div_inner.hide(200);
        }
        else {
            a.addClass(className);
            div_inner.show(200);
        }
        //if ($(this).nextAll(".accordion-inner").hasClass("active")) {
        //    return false;
        //}
        //$(this).parents("ul").find(".accordion-inner.active").removeClass("active").hide(200);
        //$(this).nextAll(".accordion-inner").addClass("active").show(200);
        return false;
    });


    $(document).on("click", ".cancel", function () {
        window.history.back();
    }).on("click", ".publish", function () {
        if (confirm("确认要发布吗?")) {
            return true;
        }
        return false;
    }).on("click", "input[type=submit]", function () {
        $("#ActionType").val($(this).data("value"));
        return true;
    }).on("click", ".input-group .glyphicon.glyphicon-search", function () {
        var obj = $(this);
        window.top.Easy.ShowUrlWindow({
            url: obj.parent().siblings("input.form-control").data("url"),
            width: obj.parent().siblings("input.form-control").data("width") || 800,
            onLoad: function (box) {
                var win = this;
                $(this.document).find("#confirm").click(function () {
                    var target = obj.parent().siblings("input.form-control");
                    var selectValue = win.GetSelected();
                    if (typeof (selectValue) == "object") {
                        target.val(selectValue.value);
                        if (selectValue.additional) {
                            var form = target.closest("form");
                            var nameArray = target.attr("name").split('.');
                            for (var p in selectValue.additional) {
                                if (selectValue.additional.hasOwnProperty(p)) {
                                    nameArray[nameArray.length - 1] = p;
                                    var name = nameArray.join('.');
                                    $('[name="' + name + '"]', form).val(selectValue.additional[p]);
                                }
                            }
                        }
                    } else {
后面还有 300 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。