You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
6 years ago
|
//= require rails-ujs
|
||
|
//= require activestorage
|
||
|
//= require turbolinks
|
||
|
//= require jquery3
|
||
|
//= require popper
|
||
|
//= require bootstrap-sprockets
|
||
|
//= require jquery.validate.min
|
||
|
//= require additional-methods.min
|
||
|
//= require jquery-validate-message-zh
|
||
|
//= require bootstrap-notify
|
||
|
//= require jquery.cookie.min
|
||
|
//= require select2
|
||
|
//= require select2-i18n.zh-CN
|
||
|
//= require jquery.cxselect
|
||
|
|
||
|
//= require_tree ./admins
|
||
|
|
||
|
// ******** select2 global config ********
|
||
|
$.fn.select2.defaults.set('theme', 'bootstrap4');
|
||
|
$.fn.select2.defaults.set('language', 'zh-CN');
|
||
|
|
||
|
$(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 () {
|
||
|
});
|