Commit ca695c12411cd2e0ad5a3f51f559aff3df93015f
Committed by
Rodrigo Souto
1 parent
d35bce8d
Exists in
master
and in
29 other branches
add the wait cursor when the user try to load comments
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
public/javascripts/application.js
... | ... | @@ -858,9 +858,12 @@ Array.min = function(array) { |
858 | 858 | }; |
859 | 859 | |
860 | 860 | function hideAndGetUrl(link) { |
861 | + document.body.style.cursor = 'wait'; | |
861 | 862 | link.hide(); |
862 | 863 | url = jQuery(link).attr('href'); |
863 | - jQuery.get(url); | |
864 | + jQuery.get(url, function( data ) { | |
865 | + document.body.style.cursor = 'default'; | |
866 | + }); | |
864 | 867 | } |
865 | 868 | |
866 | 869 | jQuery(function($){ | ... | ... |