mirror of https://github.com/zulip/zulip.git
4aedc055ce
Previously, we incorrectly setup the click handler on create-custom-field-btn each time settings overlay opens, which executes handler multiple times results in more than one HTTP request to server for custom field creation. This commit creates an ID for create-field-btn and initializes the click handler on this button, instead of the form; the side effect of that change is that we're now no longer double-adding this click handler every time the page is opened. This isn't a clean solution; ideally, we'd only call the function to add the click handler once in the first place. Fixes #10126. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
icons/fonts | ||
images | ||
js | ||
locale | ||
styles | ||
templates | ||
third | ||
ts | ||
.gitignore | ||
favicon.ico | ||
node_modules |