aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-18 19:08:50 -0700
committerFriendika <info@friendika.com>2011-04-18 19:08:50 -0700
commit2afd4c9d5a5b0543d7de3fd8b5428fbb91a3898b (patch)
tree4ca604ea8e2d5afffdbff039667b395ca6c7c967 /include
parentb168847b56898412bce6b950df452102c90231d1 (diff)
downloadvolse-hubzilla-2afd4c9d5a5b0543d7de3fd8b5428fbb91a3898b.tar.gz
volse-hubzilla-2afd4c9d5a5b0543d7de3fd8b5428fbb91a3898b.tar.bz2
volse-hubzilla-2afd4c9d5a5b0543d7de3fd8b5428fbb91a3898b.zip
"wait" cursor when submitting comments bug #45
Diffstat (limited to 'include')
-rw-r--r--include/main.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/main.js b/include/main.js
index 1c695265d..a251d8e3a 100644
--- a/include/main.js
+++ b/include/main.js
@@ -27,6 +27,7 @@
var liking = 0;
var in_progress = false;
var langSelect = false;
+ var commentBusy = false;
$(document).ready(function() {
$.ajaxSetup({cache: false});
@@ -109,7 +110,6 @@
}) ;
}
timer = setTimeout(NavUpdate,30000);
-
}
function liveUpdate() {
@@ -153,8 +153,11 @@
prev = ident;
});
$('.like-rotator').hide();
+ if(commentBusy) {
+ commentBusy = false;
+ $('body').css('cursor', 'auto');
+ }
});
-
}
function imgbright(node) {
@@ -232,6 +235,8 @@
}
function post_comment(id) {
+ commentBusy = true;
+ $('body').css('cursor', 'wait');
$.post(
"item",
$("#comment-edit-form-" + id).serialize(),
@@ -248,7 +253,6 @@
if(data.reload) {
window.location.href=data.reload;
}
-
},
"json"
);