bootstrap_styles-1.0.x-dev/js/themes-overrides.js

js/themes-overrides.js
/**
 * @file
 * Behaviors Bootstrap styles themes overrides scripts.
 */

(function ($, Drupal, once) {
  "use strict";

  Drupal.behaviors.bootstrapStylesThemesOverrides = {
    attach: function (context) {

      // Layout builder modal
      // @todo: we need to add this class somewhere else
      if($('#layout-builder-modal').length) {
        $(document).ajaxComplete(function() {
          $('#layout-builder-modal').parent().addClass('ui-layout-builder-modal');
        });
      }

      // Remove custom-control class from Barrio theme.
      once('bs-themes-overrides',".bs_tab-pane--appearance input[type=radio]",context).forEach(function (value,i) {
        $(value).parent().removeClass('custom-control custom-radio');
        $(value).removeClass('custom-control-input');
        $(value).next('label').removeClass('custom-control-label');
      });
    }
  };

})(jQuery, Drupal, once);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc