Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("header")
- .on({
- ajaxStart: function () {
- $(this).addClass("ajax-loading");
- },
- ajaxStop: function () {
- $(this).removeClass("ajax-loading");
- }
- });
- $("header")
- .on({
- ajaxStart: function () {
- $(this).css( 'cursor', 'progress' );
- },
- ajaxStop: function () {
- $(this).css( 'cursor', 'default' );
- }
- });
- $("header")
- .on({
- ajaxStart: function () {
- $('body').css( 'cursor', 'progress' );
- },
- ajaxStop: function () {
- $('body').css( 'cursor', 'default' );
- }
- });
- $.ajax({
- beforeSend: function() { //function to do whatever you want to do; }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement