Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

avatar: Fix user avatar delete button bug.

jagansivam28c5818a554a5d
diff --git a/static/js/avatar.js b/static/js/avatar.js
index 082211c9442..bfe17ec5183 100644
--- a/static/js/avatar.js
+++ b/static/js/avatar.js
@@ -58,7 +58,7 @@ exports.build_user_avatar_widget = function (upload_function) {
channel.del({
url: '/json/users/me/avatar',
success: function () {
- $("#user_avatar_delete_button").hide();
+ $("#user-avatar-upload-widget .settings-page-delete-button").hide();
$("#user-avatar-source").show();
// Need to clear input because of a small edge case
// where you try to upload the same image you just deleted.