NorbiPeti
1938a9f1db
- Added "Add user to conversation" -- Added a window to search for users to add -- And made it all working - Fixed the unread indicator - Removed older TODOs
10 lines
416 B
JavaScript
10 lines
416 B
JavaScript
function userSearch() {
|
|
var json = JSON.stringify({ "action": "search", "searchstr": document.getElementById("searchtext").value });
|
|
$.ajax({
|
|
url: "/users", data: json, method: "POST", success: function (result) {
|
|
document.getElementById("searchuserlist").innerHTML = result;
|
|
}, error: function (result) {
|
|
showError(result.responseText);
|
|
}
|
|
});
|
|
}
|