Commit c5265b67397dd6f6f56ea07a74c2731177e15711
Exists in
master
and in
22 other branches
Merge branch 'comment-wait-cursor' into 'master'
Add the wait cursor when the user try to load comments http://noosfero.org/Development/ActionItem2947 See merge request !87
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
public/javascripts/application.js
... | ... | @@ -836,9 +836,12 @@ Array.min = function(array) { |
836 | 836 | }; |
837 | 837 | |
838 | 838 | function hideAndGetUrl(link) { |
839 | + document.body.style.cursor = 'wait'; | |
839 | 840 | link.hide(); |
840 | 841 | url = jQuery(link).attr('href'); |
841 | - jQuery.get(url); | |
842 | + jQuery.get(url, function( data ) { | |
843 | + document.body.style.cursor = 'default'; | |
844 | + }); | |
842 | 845 | } |
843 | 846 | |
844 | 847 | jQuery(function($){ | ... | ... |