Server IP : 149.202.105.228 / Your IP : 216.73.216.134 Web Server : Apache System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : atfycaf ( 116275) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/t/f/atfycaf/www/admin/js/jsF/ |
Upload File : |
$(document).ready(function() { $(document).on("click", ".checkAll", function() { var thisID = $(this).data("cl"); $(this).addClass("unCheckAll"); $(this).removeClass("checkAll"); $(this).html('<i class="fas fa-times"></i> Uncheck All'); $("#" + thisID + " .accessCheckBox").prop('checked', true); }); $(document).on("click", ".unCheckAll", function() { var thisID = $(this).data("cl"); $(this).addClass("checkAll"); $(this).removeClass("unCheckAll"); $(this).html('<i class="fas fa-check"></i> Check All'); $("#" + thisID + " .accessCheckBox").prop('checked', false); }); $(document).on("change", ".accessCheckBox", function() { var parent = $(this).parents(".accessChecks").attr("id"); var thisButton = $("a[data-cl='" + parent +"']"); if ($("#" + parent + " .accessCheckBox").not(":checked").length == 0) { thisButton.addClass("unCheckAll"); thisButton.removeClass("checkAll"); thisButton.html('<i class="fas fa-times"></i> Uncheck All'); } else { thisButton.addClass("checkAll"); thisButton.removeClass("unCheckAll"); thisButton.html('<i class="fas fa-check"></i> Check All'); } }); if ($(".accessCheckBox").length) { $(".accessCheckBox").each(function(index, element) { var parent = $(this).parents(".accessChecks").attr("id"); var thisButton = $("a[data-cl='" + parent +"']"); if ($("#" + parent + " .accessCheckBox").not(":checked").length == 0) { thisButton.addClass("unCheckAll"); thisButton.removeClass("checkAll"); thisButton.html('<i class="fas fa-times"></i> Uncheck All'); } else { thisButton.addClass("checkAll"); thisButton.removeClass("unCheckAll"); thisButton.html('<i class="fas fa-check"></i> Check All'); } }); } });