Fix ajax calls duplication [SCI-2916]

This commit is contained in:
Oleksii Kriuchykhin 2018-12-17 20:59:22 +01:00
parent c536130cef
commit 3610960ee3

View file

@ -255,11 +255,11 @@ var HelperModule = (function(){
// fix dropdown-menu style throughout the app
$('.dropdown-header').parent('ul').addClass('custom-dropdown-menu');
});
// Close all open modals before caching
$(document).on('turbolinks:before-cache', function() {
$('.modal').modal('hide');
});
// Close all open modals before caching
$(document).on('turbolinks:before-cache', function() {
$('.modal').off().modal('hide');
});
/* Fix .selectpicker (bootstrap-select) to work with Turbolinks 5.x */