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) {
if ($('#jot-popup').length != 0) $('#jot-popup').show();
$('#like-rotator-' + id).show();
$('#like-rotator-' + id).spin('tiny);
$.get('{{$baseurl}}/share/' + id, function(data) {
if (!editor) $("#profile-jot-text").val("");
initEditor(function(){
addeditortext(data);
$('#like-rotator-' + id).hide();
$('#like-rotator-' + id).spin(false);
$(window).scrollTop(0);
});