1
0
mirror of https://github.com/stisla/stisla.git synced 2025-09-02 20:52:42 +02:00

Stop propagation on collapse

In case you have a card inside another.
This commit is contained in:
OMAR ELGABRY
2019-02-13 16:20:24 -08:00
committed by GitHub
parent e1c1d264c8
commit 884c6603c9

View File

@@ -410,10 +410,12 @@ $(function() {
me.click(function() {
$(target).collapse('toggle');
$(target).on('shown.bs.collapse', function() {
$(target).on('shown.bs.collapse', function(e) {
e.stopPropagation();
me.html('<i class="fas fa-minus"></i>');
});
$(target).on('hidden.bs.collapse', function() {
$(target).on('hidden.bs.collapse', function(e) {
e.stopPropagation();
me.html('<i class="fas fa-plus"></i>');
});
return false;
@@ -581,4 +583,4 @@ $(function() {
}
});
}
});
});