mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 09:26:37 +08:00
Fix ajax calls duplication [SCI-2916]
This commit is contained in:
parent
c536130cef
commit
3610960ee3
1 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue