Update to Drupal 8.0.2. For more information, see https://www.drupal.org/drupal-8.0.2-release-notes
This commit is contained in:
parent
1a0e9d9fac
commit
a6b049dd05
538 changed files with 5247 additions and 1594 deletions
|
@ -635,7 +635,7 @@
|
|||
$(document).on('state:collapsed', function (e) {
|
||||
if (e.trigger) {
|
||||
if ($(e.target).is('[open]') === e.value) {
|
||||
$(e.target).find('> summary a').trigger('click');
|
||||
$(e.target).find('> summary').trigger('click');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -42,12 +42,17 @@
|
|||
var updateSelectAll = function (state) {
|
||||
// Update table's select-all checkbox (and sticky header's if available).
|
||||
$table.prev('table.sticky-header').addBack().find('th.select-all input[type="checkbox"]').each(function () {
|
||||
$(this).attr('title', state ? strings.selectNone : strings.selectAll);
|
||||
var $checkbox = $(this);
|
||||
var stateChanged = $checkbox.prop('checked') !== state;
|
||||
|
||||
$checkbox.attr('title', state ? strings.selectNone : strings.selectAll);
|
||||
|
||||
/**
|
||||
* @this {HTMLElement}
|
||||
* @checkbox {HTMLElement}
|
||||
*/
|
||||
this.checked = state;
|
||||
if (stateChanged) {
|
||||
$checkbox.prop('checked', state).trigger('change');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -57,18 +62,22 @@
|
|||
// Loop through all checkboxes and set their state to the select all
|
||||
// checkbox' state.
|
||||
checkboxes.each(function () {
|
||||
var $checkbox = $(this);
|
||||
var stateChanged = $checkbox.prop('checked') !== event.target.checked;
|
||||
|
||||
/**
|
||||
* @this {HTMLElement}
|
||||
* @checkbox {HTMLElement}
|
||||
*/
|
||||
this.checked = event.target.checked;
|
||||
if (stateChanged) {
|
||||
$checkbox.prop('checked', event.target.checked).trigger('change');
|
||||
}
|
||||
// Either add or remove the selected class based on the state of the
|
||||
// check all checkbox.
|
||||
|
||||
/**
|
||||
* @this {HTMLElement}
|
||||
* @checkbox {HTMLElement}
|
||||
*/
|
||||
$(this).closest('tr').toggleClass('selected', this.checked);
|
||||
$checkbox.closest('tr').toggleClass('selected', this.checked);
|
||||
});
|
||||
// Update the title and the state of the check all box.
|
||||
updateSelectAll(event.target.checked);
|
||||
|
|
Reference in a new issue