From ca695c12411cd2e0ad5a3f51f559aff3df93015f Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 6 Jan 2014 14:43:30 -0300 Subject: [PATCH] add the wait cursor when the user try to load comments --- public/javascripts/application.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 6c2ab93..19dce4d 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -858,9 +858,12 @@ Array.min = function(array) { }; function hideAndGetUrl(link) { + document.body.style.cursor = 'wait'; link.hide(); url = jQuery(link).attr('href'); - jQuery.get(url); + jQuery.get(url, function( data ) { + document.body.style.cursor = 'default'; + }); } jQuery(function($){ -- libgit2 0.21.2