").addClass("icon_box").append($("
").attr("src",data.accounts[i].avatar).css("float","left")))
.append($("
").addClass("label_box").css("width","unset").append($("").addClass("dn").append($("").html(data.accounts[i].display_name).addClass("emoji_poss"))).append($("").addClass("un").html(data.accounts[i].acct))).click(function() {
window.location.href = $(this).data("value");
}));
}
$(".header_search_suggestions").empty().removeClass("invisible").append(dropdown);
replace_emoji();
}
});
}
}
function searchredirect(text) {
if(text[0] == "@") window.location.href = "/search/users?q="+encodeURIComponent(text.substr(1));
else if(text[0] == "#") window.location.href = "/search?q="+encodeURIComponent(text.substr(1));
else if(text.substr(0,8) == "https://") openStatus(text);
else window.location.href = "/search?q="+encodeURIComponent(text);
}