Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023

This commit is contained in:
Pantheon Automation 2015-09-04 13:20:09 -07:00 committed by Greg Anderson
parent 2720a9ec4b
commit f3791f1da3
1898 changed files with 54300 additions and 11481 deletions

View file

@ -11,16 +11,19 @@
* Shows checked and disabled checkboxes for inherited permissions.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches functionality to the permissions table.
*/
Drupal.behaviors.permissions = {
attach: function (context) {
var self = this;
$('table#permissions').once('permissions').each(function () {
// On a site with many roles and permissions, this behavior initially has
// to perform thousands of DOM manipulations to inject checkboxes and hide
// them. By detaching the table from the DOM, all operations can be
// performed without triggering internal layout and re-rendering processes
// in the browser.
// On a site with many roles and permissions, this behavior initially
// has to perform thousands of DOM manipulations to inject checkboxes
// and hide them. By detaching the table from the DOM, all operations
// can be performed without triggering internal layout and re-rendering
// processes in the browser.
var $table = $(this);
var $ancestor;
var method;