PATH:
home
/
letacommog
/
letaweb
/
assets
/
340f9b54
/
js
/* ========================================================= * rewritten by Amr Bedair <amr.bedair@gmail.com> * @since booster v4.0.0-beta-2 * * ========================================================= */ (function($){ var checkedItems = []; /** * Init events for Bulk Actions * @param id string the ID of the grid view container */ $.fn.yiiGridView.initBulkActions = function (id) { $(document).on("click change", "#"+id+" input[type=checkbox]", function() { var grid = $('#'+id); if ($("#"+id+' tbody input[type=checkbox]:checked').length) { $(".bulk-actions-btn", grid).removeClass("disabled"); $("div.bulk-actions-blocker", grid).hide(); } else { $(".bulk-actions-btn", grid).addClass("disabled"); $("div.bulk-actions-blocker", grid).show(); } }); }; /** * Updating checkboxes after grid ajax updating * @param id string the ID of the grid view container */ $.fn.yiiGridView.afterUpdateGrid = function (id) { if ($("#"+id+' tbody input[type=checkbox]:checked').length) { var grid = $('#'+id); $(".bulk-actions-btn", grid).removeClass("disabled"); $("div.bulk-actions-blocker", grid).hide(); $.each($("#"+id+' tbody input[type=checkbox]:checked'), function(index, item) { var row = $("input[value="+item+"]", grid); if (!row.is(':checked')) row.attr("checked", "checked"); }); } }; /** * Returns array of checked items ids * @returns {Array} */ $.fn.yiiGridView.getCheckedRowsIds = function (id) { return $("#"+id+' tbody input[type=checkbox]:checked').map(function() { return $(this).val(); }).get(); } })(jQuery);
[+]
..
[-] jquery-ui-no-conflict.min.js
[edit]
[-] markdown.converter.js
[edit]
[-] jquery.saveselection.gridview.js
[edit]
[-] markdown.editor.js
[edit]
[-] moment.js
[edit]
[-] bootstrap-image-gallery.js
[edit]
[-] jquery.stickytableheaders.min.js
[edit]
[-] bootstrap.daterangepicker.js
[edit]
[-] wysihtml5-0.3.0.js
[edit]
[+]
fileupload
[-] jquery.timepicker.js
[edit]
[-] jquery.toggle.buttons.js
[edit]
[-] jquery.easy.pie.chart.js
[edit]
[-] bootstrap-modalmanager.js
[edit]
[-] bootstrap-image-gallery.min.js
[edit]
[-] bootstrap.colorpicker.js
[edit]
[-] moment.min.js
[edit]
[-] bootstrap.responsive.tables.js
[edit]
[-] markdown.sanitizer.js
[edit]
[-] jquery.stickytableheaders.js
[edit]
[-] bootstrap-noconflict.js
[edit]
[-] jquery.selectable.gridview.js
[edit]
[+]
locales
[-] date.min.js
[edit]
[-] jquery.sortable.gridview.js
[edit]
[-] bootstrap-wysihtml5.js
[edit]