This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/assets/javascripts/inc/ajax_setting.js

15 lines
544 B
JavaScript

// $.ready(function(){
// $('body').bind("ajaxSend", function(){
// $('<div class="modal-backdrop fade in"></div>').appendTo('body');
// }).bind("ajaxComplete", function(){
// $('body > div.modal-backdrop').hide().remove();
// });
// });
jQuery(document).ajaxStart(function(){
$('<div class="modal-backdrop fade in" id="sys_modal"><img src="/assets/ajax-loader.gif" style="margin-top: 25%;margin-left: 50%;"></div>').appendTo('body');
});
jQuery(document).ajaxComplete(function(){
$("#sys_modal").hide().remove();
});