mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-26 06:34:31 +00:00
Merge pull request #37 from dryabov/master
support "Update" and "x" links in "Who to follow"
This commit is contained in:
commit
c6103e366e
@ -121,7 +121,7 @@ function openProfileModal(e)
|
|||||||
};
|
};
|
||||||
|
|
||||||
//fix .modal-content height
|
//fix .modal-content height
|
||||||
$mc = $('.modal-content');
|
var $mc = $("." +profileModalClass + " .modal-content");
|
||||||
$mc.off('profileloaded');
|
$mc.off('profileloaded');
|
||||||
$mc.on('profileloaded', function() {
|
$mc.on('profileloaded', function() {
|
||||||
var viewHeader = $mc.find(".postboard > h2");
|
var viewHeader = $mc.find(".postboard > h2");
|
||||||
|
@ -66,15 +66,27 @@ var InterfaceFunctions = function()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000);
|
setTimeout(updateFollowSuggestion, 1000);
|
||||||
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000);
|
|
||||||
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000);
|
|
||||||
|
|
||||||
updateTrendingHashtags();
|
updateTrendingHashtags();
|
||||||
|
|
||||||
if( args.cbFunc )
|
if( args.cbFunc )
|
||||||
args.cbFunc(args.cbArg);
|
args.cbFunc(args.cbArg);
|
||||||
}, {cbFunc:cbFunc, cbArg:cbArg});
|
}, {cbFunc:cbFunc, cbArg:cbArg});
|
||||||
|
|
||||||
|
$('.refresh-users').on('click', function () {
|
||||||
|
updateFollowSuggestion();
|
||||||
|
});
|
||||||
|
$('.follow-suggestions').on('click', 'a.twister-user-remove', function () {
|
||||||
|
$(this).closest('li').remove();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateFollowSuggestion()
|
||||||
|
{
|
||||||
|
$('.follow-suggestions').empty();
|
||||||
|
getRandomFollowSuggestion(processSuggestion);
|
||||||
|
getRandomFollowSuggestion(processSuggestion);
|
||||||
|
getRandomFollowSuggestion(processSuggestion);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTrendingHashtags()
|
function updateTrendingHashtags()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user