Skip to content
Snippets Groups Projects
Commit dd9bb439 authored by Jeroen Tubex's avatar Jeroen Tubex Committed by Alberto Siles
Browse files

Issue #3034065 by JeroenT, gillesbailleux, carles.zapater: Uncaught TypeError:...

Issue #3034065 by JeroenT, gillesbailleux, carles.zapater: Uncaught TypeError: $(...).toast is not a function
parent 36463feb
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,11 @@ tabs:
component:
css/components/tabs.css: {}
toast:
version: VERSION
js:
js/toast.js: {}
verticaltabs:
version: VERSION
css:
......
......@@ -51,9 +51,6 @@
// init
toggleAffix(ele, $(window), wrapper);
});
$('.toast').toast('show');
}
};
......
/**
* @file
* Toast utilities.
*
*/
(function ($, Drupal) {
'use strict';
Drupal.behaviors.bootstrap_barrio_toast = {
attach: function (context, settings) {
$('.toast').toast('show');
}
};
})(jQuery, Drupal);
......@@ -25,6 +25,7 @@
* @ingroup themeable
*/
#}
{{ attach_library('bootstrap_barrio/toast') }}
<div class="toast-wrapper">
......
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