Aman Agrawal
c876e12b86
unread_ops: Let server do the mark as unread for us.
...
Previous algorithm was not correct if we didn't have full data for
the current narrow loaded from the server. #23512 adds the support
to mark messages in a narrow unread after a give message_id.
Added a new alert banner to indicate loading and success states of
an ongoing request. This is useful when requests can take a long
time to complete.
2022-11-17 00:46:26 -08:00
Anders Kaseorg
e8a30060ee
js: Enable no-jquery/no-constructor-attributes.
...
https://github.com/wikimedia/eslint-plugin-no-jquery/blob/master/docs/rules/no-constructor-attributes.md
The motivation for this rule is a subtle caveat buried in the
documentation:
https://api.jquery.com/jquery/#jQuery-html-attributes
“While the second argument is convenient, its flexibility can lead to
unintended consequences (e.g. $( "<input>", {size: "4"} ) calling the
.size() method instead of setting the size attribute).”
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-08-16 13:42:28 -07:00
Anders Kaseorg
6aec27e646
js: Fix no-jquery/no-parse-html-literal.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-03-17 13:16:34 -07:00
Anders Kaseorg
e32ec3f7eb
ui_report: Fix inappropriate $ prefix.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-03-17 13:16:34 -07:00
Anders Kaseorg
f84a2c08d5
js: Prefix jQuery object variable names with $.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-03-16 12:52:07 -07:00
Priyank Patel
f7235912ff
ts: Convert ui_report module to TypeScript.
2021-06-22 09:09:36 -07:00