From 486041ebbce26bc6a2540e2d93b938ea0e35e9bb Mon Sep 17 00:00:00 2001 From: git-marijus Date: Sat, 13 Jul 2013 20:03:42 +0200 Subject: Update main.js --- js/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index f1a50e28a..3f165dfa3 100644 --- a/js/main.js +++ b/js/main.js @@ -1,4 +1,3 @@ - function confirmDelete() { return confirm(aStr['delitem']); } function commentOpen(obj,id) { if(obj.value == aStr['comment']) { @@ -509,7 +508,7 @@ function updateConvItems(mode,data) { } if(page_load) - $("#page-spinner").show(); + $("#page-spinner").spin('small'); $.get(update_url,function(data) { var update_mode = ((page_load) ? 'replace' : 'update'); @@ -519,7 +518,7 @@ function updateConvItems(mode,data) { scroll_next = false; in_progress = false; updateConvItems(update_mode,data); - $("#page-spinner").hide(); + $("#page-spinner").spin(false); $("#profile-jot-text-loading").hide(); }); -- cgit v1.2.3 From 7f3c44a43171c7acd06fe0417923f51802b50e6c Mon Sep 17 00:00:00 2001 From: git-marijus Date: Sat, 13 Jul 2013 20:07:37 +0200 Subject: Update main.js --- js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 3f165dfa3..3dc9d4814 100644 --- a/js/main.js +++ b/js/main.js @@ -1,4 +1,5 @@ - function confirmDelete() { return confirm(aStr['delitem']); } + +function confirmDelete() { return confirm(aStr['delitem']); } function commentOpen(obj,id) { if(obj.value == aStr['comment']) { obj.value = ''; -- cgit v1.2.3 From 1d5fe559738dca70650e969b8630f905190b535e Mon Sep 17 00:00:00 2001 From: git-marijus Date: Sat, 13 Jul 2013 20:11:21 +0200 Subject: Update main.js --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 3dc9d4814..6a45c8f37 100644 --- a/js/main.js +++ b/js/main.js @@ -1,5 +1,5 @@ -function confirmDelete() { return confirm(aStr['delitem']); } + function confirmDelete() { return confirm(aStr['delitem']); } function commentOpen(obj,id) { if(obj.value == aStr['comment']) { obj.value = ''; -- cgit v1.2.3 From 272642966b3019cb09961f47de7b91c29e98f2b7 Mon Sep 17 00:00:00 2001 From: git-marijus Date: Sat, 13 Jul 2013 21:37:39 +0200 Subject: port like button to spin.js --- js/main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/main.js') 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); }); } -- cgit v1.2.3 From 9cb151fe27463f6154e61f1cc01d13bd49ab6017 Mon Sep 17 00:00:00 2001 From: git-marijus Date: Sat, 13 Jul 2013 23:28:44 +0200 Subject: port jot to spin.js --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 170062264..4938c6acd 100644 --- a/js/main.js +++ b/js/main.js @@ -520,7 +520,7 @@ function updateConvItems(mode,data) { in_progress = false; updateConvItems(update_mode,data); $("#page-spinner").spin(false); - $("#profile-jot-text-loading").hide(); + $("#profile-jot-text-loading").spin(false); }); -- cgit v1.2.3