|
|
|
//= require rails-ujs
|
|
|
|
//= require activestorage
|
|
|
|
//= require turbolinks
|
|
|
|
//= require jquery3
|
|
|
|
//= require popper
|
|
|
|
//= require bootstrap-sprockets
|
|
|
|
//= require jquery.validate.min
|
|
|
|
//= require additional-methods.min
|
|
|
|
//= require bootstrap-notify
|
|
|
|
//= require jquery.cookie.min
|
|
|
|
//= require select2
|
|
|
|
//= require jquery.cxselect
|
|
|
|
//= require bootstrap-datepicker
|
|
|
|
|
|
|
|
//= require_tree ./i18n
|
|
|
|
//= require_tree ./admins
|
|
|
|
|
|
|
|
// ******** select2 global config ********
|
|
|
|
$.fn.select2.defaults.set('theme', 'bootstrap4');
|
|
|
|
$.fn.select2.defaults.set('language', 'zh-CN');
|
|
|
|
|
|
|
|
Turbolinks.setProgressBarDelay(200);
|
|
|
|
|
|
|
|
$(document).on('turbolinks:load', function(){
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
|
$('[data-toggle="popover"]').popover();
|
|
|
|
|
|
|
|
// flash alert提示框自动关闭
|
|
|
|
if($('.admin-alert-container .alert').length > 0){
|
|
|
|
setTimeout(function(){
|
|
|
|
$('.admin-alert-container .alert').alert('close');
|
|
|
|
}, 2000);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on("turbolinks:before-cache", function () {
|
|
|
|
$('[data-toggle="tooltip"]').tooltip('hide');
|
|
|
|
$('[data-toggle="popover"]').popover('hide');
|
|
|
|
});
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
});
|