Skip to content
Snippets Groups Projects
Commit 2ac82d31 authored by Shelane French's avatar Shelane French
Browse files

Issue #3446584: Fix code check issues

parent 6c30c50f
No related branches found
No related tags found
1 merge request!13applied lint patch
Pipeline #170134 passed with warnings
(function ($) {
'use strict';
/**
* Attaches the behavior to bootstrap carousel view.
*/
Drupal.behaviors.views_bootstrap_carousel = {
attach: function (context, settings) {
$('.carousel-inner').each(function() {
attach(context, settings) {
$('.carousel-inner').each(function () {
if ($(this).children('div').length === 1) {
$(this).siblings('.carousel-control, .carousel-indicators').hide();
}
});
}
}
}(jQuery));
\ No newline at end of file
},
};
})(jQuery);
......@@ -61,7 +61,7 @@ class ViewsBootstrapAccordion extends StylePluginBase {
'#options' => $this->displayHandler->getFieldLabels(TRUE),
'#required' => TRUE,
'#default_value' => $this->options['panel_title_field'],
'#description' => $this->t('Select the field that will be used as the accordian panel titles.'),
'#description' => $this->t('Select the field that will be used as the accordion panel titles.'),
];
}
$options_select = [
......
......@@ -78,7 +78,7 @@ class ViewsBootstrapCarousel extends StylePluginBase {
$form['ride'] = [
'#type' => 'checkbox',
'#title' => $this->t('Ride (Autoplay)'),
'#description' => $this->t('Autoplays the carousel on load.'),
'#description' => $this->t('Autoplay the carousel on load.'),
'#default_value' => $this->options['ride'],
];
......
{# @todo: add more control to images and positoning #}
{# @todo: add more control to images and positioning #}
<div{{ attributes.addClass(classes) }} id="{{ id }}">
{% for key, row in rows -%}
......
......@@ -32,7 +32,7 @@ function template_preprocess_views_bootstrap_accordion(array &$vars) {
}
}
else {
// @todo This would be better as valdiation errors on the style plugin options form.
// @todo This would be better as validation errors on the style plugin options form.
\Drupal::messenger()->addWarning(t('@style style will not display without the "@field" setting.',
[
'@style' => $view->style_plugin->definition['title'],
......@@ -230,7 +230,7 @@ function template_preprocess_views_bootstrap_tab(array &$vars) {
}
}
else {
// @todo This would be better as valdiation errors on the style plugin options form.
// @todo This would be better as validation errors on the style plugin options form.
\Drupal::messenger()->addWarning(t('@style style will not display without the "@field" setting.',
[
'@style' => $view->style_plugin->definition['title'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment