Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user status: Remove data attributes from user status options.
Vishnu KS3e62a793f76b
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.jsindex 00eac803816..966c3a1a364 100644--- a/static/js/click_handlers.js+++ b/static/js/click_handlers.js@@ -271,7 +271,7 @@ export function initialize() {$(".user-status-value").on("click", (e) => {e.stopPropagation();- const user_status_value = $(e.currentTarget).attr("data-user-status-value");+ const user_status_value = $(e.currentTarget).text();$("input.user_status").val(user_status_value);user_status_ui.toggle_clear_message_button();user_status_ui.update_button();diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.htmlindex f82beef7473..76c215658ab 100644--- a/templates/zerver/app/index.html+++ b/templates/zerver/app/index.html@@ -157,11 +157,11 @@</button></div><div class="user-status-options">- <button type="button" class="button no-style user-status-value" data-user-status-value="In a meeting">In a meeting</button>- <button type="button" class="button no-style user-status-value" data-user-status-value="Commuting">Commuting</button>- <button type="button" class="button no-style user-status-value" data-user-status-value="Out sick">Out sick</button>- <button type="button" class="button no-style user-status-value" data-user-status-value="Vacationing">Vacationing</button>- <button type="button" class="button no-style user-status-value" data-user-status-value="Working remotely">Working remotely</button>+ <button type="button" class="button no-style user-status-value">In a meeting</button>+ <button type="button" class="button no-style user-status-value">Commuting</button>+ <button type="button" class="button no-style user-status-value">Out sick</button>+ <button type="button" class="button no-style user-status-value">Vacationing</button>+ <button type="button" class="button no-style user-status-value">Working remotely</button></div><div class="modal-footer"><button class="button exit small rounded">Cancel</button>