%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 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 : /proc/thread-self/root/var/www/html/ppaobm/backend/web/assets/ab74ac7f/js/ |
Upload File : |
/*!
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2019
* @version 3.3.2
*
* Client actions for kartik\grid\CheckboxColumn
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2019, 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 $grid = $('#' + id),
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);
}
},
toggle = function ($cbx, all) {
if (all === true) {
$grid.find(".kv-row-select input").each(function () {
kvHighlight($(this), $cbx);
});
return;
}
kvHighlight($cbx);
};
$grid.find(".kv-row-select input").on('change', function () {
toggle($(this));
}).each(function () {
toggle($(this));
});
$grid.find(".kv-all-select input").on('change', function () {
toggle($(this), true);
});
};
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);