diff options
author | git-marijus <mario@mariovavti.com> | 2013-07-13 21:37:39 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2013-07-13 21:37:39 +0200 |
commit | 272642966b3019cb09961f47de7b91c29e98f2b7 (patch) | |
tree | 1665329d31d17e4afe59157524a01d9ca549b740 /js/main.js | |
parent | caa02c28f22fac78629bf631806ca0f9513666da (diff) | |
download | volse-hubzilla-272642966b3019cb09961f47de7b91c29e98f2b7.tar.gz volse-hubzilla-272642966b3019cb09961f47de7b91c29e98f2b7.tar.bz2 volse-hubzilla-272642966b3019cb09961f47de7b91c29e98f2b7.zip |
port like button to spin.js
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/main.js b/js/main.js index 6a45c8f37..170062264 100644 --- a/js/main.js +++ b/js/main.js @@ -252,7 +252,7 @@ function NavUpdate() { if(liking) - $('.like-rotator').hide(); + $('.like-rotator').spin(false); if(! stopped) { @@ -423,7 +423,7 @@ function updateConvItems(mode,data) { }); } - $('.like-rotator').hide(); + $('.like-rotator').spin(false); if(commentBusy) { commentBusy = false; @@ -475,7 +475,7 @@ function updateConvItems(mode,data) { function liveUpdate() { - if((src == null) || (stopped) || (! profile_uid)) { $('.like-rotator').hide(); return; } + if((src == null) || (stopped) || (! profile_uid)) { $('.like-rotator').spin(false); return; } if(($('.comment-edit-text-full').length) || (in_progress)) { if(livetime) { clearTimeout(livetime); @@ -586,14 +586,14 @@ function updateConvItems(mode,data) { function dolike(ident,verb) { unpause(); - $('#like-rotator-' + ident.toString()).show(); + $('#like-rotator-' + ident.toString()).spin('tiny'); $.get('like/' + ident.toString() + '?verb=' + verb, NavUpdate ); liking = 1; } function dosubthread(ident) { unpause(); - $('#like-rotator-' + ident.toString()).show(); + $('#like-rotator-' + ident.toString()).spin('tiny'); $.get('subthread/' + ident.toString(), NavUpdate ); liking = 1; } @@ -601,7 +601,7 @@ function updateConvItems(mode,data) { function dostar(ident) { ident = ident.toString(); - $('#like-rotator-' + ident).show(); + $('#like-rotator-' + ident).spin('tiny'); $.get('starred/' + ident, function(data) { if(data.result == 1) { $('#starred-' + ident).addClass('starred'); @@ -615,7 +615,7 @@ function updateConvItems(mode,data) { $('#star-' + ident).removeClass('hidden'); $('#unstar-' + ident).addClass('hidden'); } - $('#like-rotator-' + ident).hide(); + $('#like-rotator-' + ident).spin(false); }); } |