PHP Classes

File: resources/js/plugins.js

Recommend this page to a friend!
  Classes of Nyi Nyi Lwin   Laravel SAAS Boilerplate   resources/js/plugins.js   Download  
File: resources/js/plugins.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel SAAS Boilerplate
Base application to develop software as a service
Author: By
Last change:
Date: 1 year ago
Size: 745 bytes
 

Contents

Class file image Download
/** * Place any jQuery/helper plugins in here. */ $(function () { /** * Checkbox tree for permission selecting */ let permissionTree = $('.permission-tree :checkbox'); permissionTree.on('click change', function (){ if($(this).is(':checked')) { $(this).siblings('ul').find('input[type="checkbox"]').attr('checked', true).attr('disabled', true); } else { $(this).siblings('ul').find('input[type="checkbox"]').removeAttr('checked').removeAttr('disabled'); } }); permissionTree.each(function () { if($(this).is(':checked')) { $(this).siblings('ul').find('input[type="checkbox"]').attr('checked', true).attr('disabled', true); } }); })