mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
custom fields: Fix field value not saved on change, just after created.
Whenever custom fields templates get rendered within user account settings, on-change event listener wasn't get created. Cause event listener wasn't set properly.
This commit is contained in:
committed by
Tim Abbott
parent
3703013b4f
commit
ffe986886f
@@ -328,7 +328,7 @@ exports.set_up = function () {
|
||||
$("#deactivate_self_modal").modal("show");
|
||||
});
|
||||
|
||||
$(".custom_user_field_value").on('change', function (e) {
|
||||
$('#settings_page').on('change', '.custom_user_field_value', function (e) {
|
||||
var fields = [];
|
||||
var value = $(this).val();
|
||||
fields.push({id: parseInt($(e.target).closest('.custom_user_field').attr("data-field-id"), 10),
|
||||
|
||||
Reference in New Issue
Block a user