WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/plugins/jquery.propertygrid.js

(开头部分) 15KB

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

/**
 * jQuery EasyUI 1.4.4
 *
 * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
 *
 * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
 * To use it on other terms please contact us: info@jeasyui.com
 *
 */
(function ($) {
    var _1;
    $(document).unbind(".propertygrid").bind("mousedown.propertygrid", function (e) {
        var p = $(e.target).closest("div.datagrid-view,div.combo-panel");
        if (p.length) {
            return;
        }
        _2(_1);
        _1 = undefined;
    });
    function _3(_4) {
        var _5 = $.data(_4, "propertygrid");
        var _6 = $.data(_4, "propertygrid").options;
        $(_4).datagrid($.extend({}, _6, {
            cls: "propertygrid", view: (_6.showGroup ? _6.groupView : _6.view), onBeforeEdit: function (_7, _8) {
                if (_6.onBeforeEdit.call(_4, _7, _8) == false) {
                    return false;
                }
                var dg = $(this);
                var _8 = dg.datagrid("getRows")[_7];
                var _9 = dg.datagrid("getColumnOption", "value");
                _9.editor = _8.editor;
            }, onClickCell: function (_a, _b, _c) {
                if (_1 != this) {
                    _2(_1);
                    _1 = this;
                }
                if (_6.editIndex != _a) {
                    _2(_1);
                    $(this).datagrid("beginEdit", _a);
                    var ed = $(this).datagrid("getEditor", { index: _a, field: _b });
                    if (!ed) {
                        ed = $(this).datagrid("getEditor", { index: _a, field: "value" });
                    }
                    if (ed) {
                        var t = $(ed.target);
                        var _d = t.data("textbox") ? t.textbox("textbox") : t;
                        _d.focus();
                        _6.editIndex = _a;
                    }
                }
                _6.onClickCell.call(_4, _a, _b, _c);
            }, loadFilter: function (_e) {
                _2(this);
                return _6.loadFilter.call(this, _e);
            }
        }));
    };
    function _2(_f) {
        var t = $(_f);
        if (!t.length) {
后面还有 281 行代码,购买后查看完整代码

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

AI 解读 AI

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

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