|
|
|
@ -70,10 +70,19 @@ var InterfaceFunctions = function()
@@ -70,10 +70,19 @@ var InterfaceFunctions = function()
|
|
|
|
|
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000); |
|
|
|
|
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000); |
|
|
|
|
|
|
|
|
|
updateTrendingHashtags(); |
|
|
|
|
|
|
|
|
|
if( args.cbFunc ) |
|
|
|
|
args.cbFunc(args.cbArg); |
|
|
|
|
}, {cbFunc:cbFunc, cbArg:cbArg}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function updateTrendingHashtags() |
|
|
|
|
{ |
|
|
|
|
$(".toptrends-list").empty(); |
|
|
|
|
twisterRpc("gettrendinghashtags", [10], |
|
|
|
|
function(args, ret) { |
|
|
|
|
for( var i = 0; i < ret.length; i++ ) { |
|
|
|
|
|
|
|
|
|
var $li = $("<li>"); |
|
|
|
|
var hashtagLinkTemplate = $("#hashtag-link-template").clone(true); |
|
|
|
|
hashtagLinkTemplate.removeAttr("id"); |
|
|
|
@ -86,10 +95,7 @@ var InterfaceFunctions = function()
@@ -86,10 +95,7 @@ var InterfaceFunctions = function()
|
|
|
|
|
function(args, ret) { |
|
|
|
|
console.log("Error with gettrendinghashtags. Older twister daemon?"); |
|
|
|
|
}, {}); |
|
|
|
|
|
|
|
|
|
if( args.cbFunc ) |
|
|
|
|
args.cbFunc(args.cbArg); |
|
|
|
|
}, {cbFunc:cbFunc, cbArg:cbArg}); |
|
|
|
|
setTimeout(updateTrendingHashtags, 20*60*1000); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|