user status: Add user status message options to user status modal.

Several user status message options are added to user status modal so
that the users can pick from them.

Fixes part of #11629.
This commit is contained in:
Abhinav Singh
2019-04-23 21:37:10 +05:30
committed by Tim Abbott
parent 61982d9d47
commit 3f10dc92ec
3 changed files with 28 additions and 0 deletions

View File

@@ -203,6 +203,15 @@ exports.initialize = function () {
window.location.href = $(this).attr('href');
});
// USER STATUS MODAL
$(".user-status-value").on("click", function (e) {
e.stopPropagation();
var user_status_value = $(e.currentTarget).attr("data-user-status-value");
$("input.user_status").val(user_status_value);
user_status_ui.update_button();
});
// NOTIFICATION CLICK
$('body').on('click', '.notification', function () {