more module updates

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-20 18:02:17 +02:00
parent 37fbabab56
commit 7c85261e56
100 changed files with 6518 additions and 913 deletions

View File

@@ -0,0 +1,31 @@
(function ($) {
// Show / hide detailed db info.
Drupal.behaviors.prod_check = {
attach: function(context, settings) {
$('#content').find('a.show-more').unbind('click').bind('click', function(e) {
e.preventDefault();
var $this = $(this),
details = $this.attr('data-details'),
hide = Drupal.t('Hide details'),
show = Drupal.t('Show details'),
active = 'expanded';
if ($this.hasClass(active)) {
$('#content').find('pre.' + details).hide();
$this.text(show);
$this.removeClass(active);
}
else {
$('#content').find('pre.' + details).show();
$this.text(hide);
$this.addClass(active);
}
});
}
};
})(jQuery);