show spinning cursor to let you know a refresh is happening.

This commit is contained in:
friendica 2012-07-25 23:03:56 -07:00
parent 7bdbb8331c
commit acfe9e77bf
2 changed files with 5 additions and 0 deletions

View File

@ -340,11 +340,15 @@ function updateConvItems(mode,data) {
update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
} }
if(page_load)
$("#profile-jot-text-loading").show();
$.get(update_url,function(data) { $.get(update_url,function(data) {
var update_mode = ((page_load) ? 'replace' : 'update'); var update_mode = ((page_load) ? 'replace' : 'update');
page_load = false; page_load = false;
in_progress = false; in_progress = false;
updateConvItems(update_mode,data); updateConvItems(update_mode,data);
$("#profile-jot-text-loading").hide();
}); });

View File

@ -11,6 +11,7 @@
function networkRefresh() { function networkRefresh() {
if((document.readyState !== "complete") || (slideTimer !== null)) if((document.readyState !== "complete") || (slideTimer !== null))
return; return;
setTimeout(function() { $("#profile-jot-text-loading").show(); }, 1000 );
slideTimer = setTimeout(networkTimerRefresh,2000); slideTimer = setTimeout(networkTimerRefresh,2000);
} }