non security modules update
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
(function ($) {
|
||||
|
||||
/**
|
||||
* Show/hide the description details on Available translation updates page.
|
||||
*/
|
||||
Drupal.behaviors.hideUpdateInformation = {
|
||||
attach: function (context, settings) {
|
||||
var $table = $('#l10n-update-status-form').once('expand-updates');
|
||||
if ($table.length) {
|
||||
var $tbodies = $table.find('tbody');
|
||||
|
||||
// Open/close the description details by toggling a tr class.
|
||||
$tbodies.find('.description').bind('click keydown', function (e) {
|
||||
if (e.keyCode && (e.keyCode !== 13 && e.keyCode !== 32)) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
var $tr = $(this).closest('tr');
|
||||
|
||||
$tr.toggleClass('expanded');
|
||||
|
||||
// Change screen reader text.
|
||||
$tr.find('.update-description-prefix').text(function () {
|
||||
if ($tr.hasClass('expanded')) {
|
||||
return Drupal.t('Hide description');
|
||||
}
|
||||
else {
|
||||
return Drupal.t('Show description');
|
||||
}
|
||||
});
|
||||
});
|
||||
$table.find('.requirements, .links').hide();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
@@ -1,22 +0,0 @@
|
||||
(function ($) {
|
||||
|
||||
Drupal.behaviors.l10nUpdateCollapse = {
|
||||
attach: function (context, settings) {
|
||||
$('.l10n-update .l10n-update-wrapper', context).once('l10nupdatecollapse', function () {
|
||||
var wrapper = $(this);
|
||||
|
||||
// Turn the project title into a clickable link.
|
||||
// Add an event to toggle the content visibiltiy.
|
||||
var $legend = $('.project-title', this);
|
||||
var $link = $('<a href="#"></a>')
|
||||
.prepend($legend.contents())
|
||||
.appendTo($legend)
|
||||
.click(function () {
|
||||
Drupal.toggleFieldset(wrapper);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
Reference in New Issue
Block a user