Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document)
- .ajaxSend(function (event, xhr, aOpts) {
- $('<div/>', {
- id: 'loading-indicator',
- text: 'Working...',
- css: {
- position: 'fixed',
- top: '0',
- left: '0'
- }
- }).prependTo('body');
- })
- .ajaxComplete(function() {
- $('#loading-indicator').remove();
- });
Add Comment
Please, Sign In to add comment