port like button to spin.js

This commit is contained in:
git-marijus 2013-07-13 21:40:53 +02:00
parent 272642966b
commit 33d1736228

View File

@ -200,12 +200,12 @@ function enableOnUser(){
function jotShare(id) { function jotShare(id) {
if ($('#jot-popup').length != 0) $('#jot-popup').show(); if ($('#jot-popup').length != 0) $('#jot-popup').show();
$('#like-rotator-' + id).show(); $('#like-rotator-' + id).spin('tiny);
$.get('{{$baseurl}}/share/' + id, function(data) { $.get('{{$baseurl}}/share/' + id, function(data) {
if (!editor) $("#profile-jot-text").val(""); if (!editor) $("#profile-jot-text").val("");
initEditor(function(){ initEditor(function(){
addeditortext(data); addeditortext(data);
$('#like-rotator-' + id).hide(); $('#like-rotator-' + id).spin(false);
$(window).scrollTop(0); $(window).scrollTop(0);
}); });