mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-27 23:45:52 +08:00
Merge pull request #1428 from okriuchykhin/ok_SCI_2916
Fix ajax calls duplication [SCI-2916]
This commit is contained in:
commit
5304fabed2
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…
Add table
Reference in a new issue