mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 20:25:22 +08:00
Merge pull request #1283 from Ducz0r/lm-sci-2707-fix
Fix bootstrap-select to work with turbolinks 5.x [SCI-2707]
This commit is contained in:
commit
50f6bd24e1
2 changed files with 12 additions and 4 deletions
|
@ -262,4 +262,9 @@ var HelperModule = (function(){
|
|||
$('.modal').modal('hide');
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
||||
/* Fix .selectpicker (bootstrap-select) to work with Turbolinks 5.x */
|
||||
$(document).on('turbolinks:load', function() {
|
||||
$(window).trigger('load.bs.select.data-api');
|
||||
});
|
||||
})();
|
|
@ -173,8 +173,11 @@
|
|||
});
|
||||
}
|
||||
|
||||
$('[data-role=invite-users-modal]').each(function() {
|
||||
initializeModal($(this));
|
||||
$(document).on('turbolinks:load', function() {
|
||||
$('[data-role=invite-users-modal]').each(function() {
|
||||
initializeModal($(this));
|
||||
});
|
||||
|
||||
initializeModalsToggle();
|
||||
});
|
||||
initializeModalsToggle();
|
||||
}());
|
||||
|
|
Loading…
Add table
Reference in a new issue