Sha256: 917e92079a237d585d0eaa6aac30413c8ed87e1d1456034085075e6d6889d9dc
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
"use strict"; /** * Javascript file loaded by the Users package. The code in this file is used to * make it easier for users to check all the checkboxes for a package when * managing a user or user group's permissions. * * @since 0.3 */ window.addEvent('domready', function() { // Button that can be used to allow all the permissions for a package. $$('.package .button.allow').addEvent('click', function() { var checkboxes = this.getParent('.package') .getChildren('.permissions input[type="checkbox"]'); checkboxes.each(function(checkbox) { checkbox.set('checked', true); }); }); // Button that can be used to deny all the permissions for a package. $$('.package .button.deny').addEvent('click', function() { var checkboxes = this.getParent('.package') .getChildren('.permissions input[type="checkbox"]'); checkboxes.each(function(checkbox) { checkbox.set('checked', false); }); }); });
Version data entries
4 entries across 4 versions & 1 rubygems