first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/**
* @file
* Attaches behavior for the Filter module.
*/
(function ($, once) {
'use strict';
function updateFilterHelpLink () {
var $link = $(this).parents('.filter-wrapper').find('.filter-help > a');
var originalLink = $link.data('originalLink');
if (!originalLink) {
originalLink = $link.attr('href');
$link.data('originalLink', originalLink);
}
$link.attr('href', originalLink + '/' + $(this).find(':selected').val());
}
$(document).on('change', '.filter-wrapper select.filter-list', updateFilterHelpLink);
/**
* Displays the guidelines of the selected text format automatically.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches behavior for updating filter guidelines.
*/
Drupal.behaviors.filterGuidelines = {
attach: function (context) {
$(once('filter-list', '.filter-wrapper select.filter-list', context)).each(updateFilterHelpLink);
}
};
})(jQuery, once);

View File

@@ -0,0 +1,11 @@
/**
* @file
* Theme hooks for the Drupal Bootstrap base theme.
*/
(function ($, Drupal) {
if (Drupal.ImageWidgetCrop && Drupal.ImageWidgetCrop.prototype && Drupal.ImageWidgetCrop.prototype.selectors && Drupal.ImageWidgetCrop.prototype.selectors.summary) {
Drupal.ImageWidgetCrop.prototype.selectors.summary += ', > .panel-heading > .panel-title';
}
})(window.jQuery, window.Drupal);

View File

@@ -0,0 +1,24 @@
/**
* @file
* Extends core ajax_view.js.
*/
(function ($, Drupal) {
'use strict';
/**
* @method
*/
Drupal.views.ajaxView.prototype.attachExposedFormAjax = function () {
var that = this;
this.exposedFormAjax = [];
$('button[type=submit], input[type=submit], input[type=image]', this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function (index) {
var self_settings = $.extend({}, that.element_settings, {
base: $(this).attr('id'),
element: this
});
that.exposedFormAjax[index] = Drupal.ajax(self_settings);
});
};
})(jQuery, Drupal);