%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/egp/vendor/kartik-v/yii2-grid/src/assets/js/ |
Upload File : |
/*! * @package yii2-grid * @author Kartik Visweswaran <kartikv2@gmail.com> * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2020 * @version 3.3.6 * * Client actions for kartik\grid\CheckboxColumn * * Author: Kartik Visweswaran * Copyright: 2014 - 2020, Kartik Visweswaran, Krajee.com * For more JQuery plugins visit http://plugins.krajee.com * For more Yii related demos visit http://demos.krajee.com */ var kvSelectRow, kvSelectColumn; (function ($) { "use strict"; kvSelectRow = function (id, css) { var KRAJEE_NS = 'krajeeGrid', CHANGE = 'change.' + KRAJEE_NS, $grid = $('#' + id), $cbxs = $grid.find(".kv-row-select input"), kvHighlight = function ($el, $parent) { var $row = $el.closest('tr'), $cbx = $parent || $el; if ($cbx.is(':checked') && !$el.attr('disabled')) { $row.removeClass(css).addClass(css); } else { $row.removeClass(css); } }, toggleAll = function() { $cbxs.each(function () { kvHighlight($(this)); }); }; $cbxs.off(CHANGE).on(CHANGE, function () { kvHighlight($(this)); }); $grid.find(".kv-all-select input").off(CHANGE).on(CHANGE, function (event) { if (event.namespace === undefined && event.handleObj.namespace === KRAJEE_NS) { setTimeout(function() { toggleAll(); }, 100); } }); toggleAll(); }; kvSelectColumn = function (id, options) { var gridId = '#' + id, $grid = $(gridId), checkAll, inputs, inputsEnabled; if (!options.multiple || !options.checkAll) { return; } checkAll = gridId + " input[name='" + options.checkAll + "']"; inputs = options.class ? "input." + options.class : "input[name='" + options.name + "']"; inputsEnabled = gridId + " " + inputs + ":enabled"; $(document).off('click.yiiGridView', checkAll).on('click.yiiGridView', checkAll, function () { $grid.find(inputs + ":enabled").prop('checked', this.checked); }); $(document).off('click.yiiGridView', inputsEnabled).on('click.yiiGridView', inputsEnabled, function () { var all = $grid.find(inputs).length === $grid.find(inputs + ":checked").length; $grid.find("input[name='" + options.checkAll + "']").prop('checked', all); }); }; })(window.jQuery);