Sampriti Panda
196cf4367b
urls: Move /messages/render to POST endpoint
2017-01-13 16:11:51 -08:00
Tim Abbott
998dff9e50
lint: Add dangling commas in JavaScript objects.
2017-01-11 15:23:42 -08:00
Sampriti Panda
45a5e47e1b
compose: Fix bug on sending message to invalid streams.
...
The issue is that we were trying to validate the mentions before
checking that the recipient stream was valid, leading to problems
checking the membership of the stream.
Fixes #3040 .
2017-01-05 15:26:54 -08:00
Sampriti Panda
c15d1ff343
compose: Split validate_stream_message into separate functions.
2017-01-05 15:26:03 -08:00
Tim Abbott
e943c1d247
compose: Export autosize_textarea.
2017-01-03 19:14:38 -08:00
Arpith Siromoney
5639f21188
Add missing exports to js modules
2016-12-29 06:01:33 -08:00
Tim Abbott
5ad9a9d014
compose: Fix websockets having been accidentally disabled.
...
When we renamed use_socket to use_websockets, we only renamed it on
the backend, and thus it became effectively hardcoded to false.
2016-12-28 09:24:19 -08:00
Sanskar Modi
e6beaa2711
Improve @all warnings user interface significantly.
...
* Doesn't pop up the warning until you actually try to send the message
* Eliminates the red warning.
* Changes confirm text to "Yes, send".
* Adds a stream size threshhold of 15 people; smaller streams don't
prompt about this.
Fixes #2257 .
2016-12-21 11:40:47 -08:00
Tim Abbott
f0f4be4af7
lint: Fix remaining no-unused-vars eslint rule violations.
2016-12-14 22:36:47 -08:00
Rafid Aslam
45f39be37f
lint: Fix many no-unused-vars eslint rule violations.
...
These have been carefully audited by tabbott to ensure they are
unlikely to cause regressions.
2016-12-14 21:34:51 -08:00
Zac Pullar-Strecker
e6e11aefb3
settings: Add option to disable websockets.
...
This can be useful in scenarios where the network doesn't support
websockets. We don't include it in prod_settings_template.py since
it's a very rare setting to need.
Fixes #1528 .
2016-12-05 21:55:22 -08:00
lonerz
dc6849952b
eslint: change space-before-function-paren from warning to error.
...
Also fix violations.
2016-12-05 09:50:37 -08:00
AZtheAsian
5e9918135b
eslint: change quote-props from off to error and fix violations.
2016-12-02 18:35:53 -08:00
AZtheAsian
9c0ebc7359
eslint: change no-else-return to error and fix violations
2016-12-02 14:43:09 -08:00
AZtheAsian
ed0bc831be
eslint: change one-var from warning to error and fix violations
2016-12-02 11:25:16 -07:00
Tommy Ip
b3f4feb996
eslint: change max-len from warning to error and fix violations.
2016-12-02 14:16:33 +00:00
Tommy Ip
c90da24541
eslint: change keyword-spacing from warning to error and fix violations.
2016-12-01 14:22:15 -08:00
Steve Howell
9b04ec7472
Send dicts for cross realm users to JS.
...
We now send dictionaries for cross-realm bots. This led to the
following changes:
* Create get_cross_realm_dicts() in actions.py.
* Rename the page_params field to cross_realm_bots.
* Fix some back end tests.
* Add cross_realm_dict to people.js.
* Call people.add for cross-realm bots (if they are not already part of the realm).
* Remove hack to add in feedback@zulip.com on the client side.
* Add people.is_cross_realm_email() and use it in compose.js.
* Remove util.string_in_list_case_insensitive().
2016-11-03 09:51:23 -07:00
deekshaarul
05d252da71
compose.js: Add translation tag to empty_topic_placeholder.
...
Moves the variable definition from the top of the file to inside the export
since i18n seems not be loaded at the time the file is parsed.
2016-11-02 17:46:32 -07:00
hackerkid
9a2e24a458
Use spinner as message preview loader.
2016-09-26 21:00:28 -07:00
hackerkid
dc355fcf1e
Use backend markdown processor in message preview.
...
[tweaked by tabbott to add comment and fetch the authoritative
rendering from the backend unconditionally]
Fixes #1834 .
2016-09-25 22:17:40 -07:00
hackerkid
0412e1e20b
Add support for markdown preview in compose area.
...
This doesn't currently use the backend markdown processor, so the
previews are not completely faithful.
Fixes #217 .
2016-09-21 22:33:35 -07:00
Steve Howell
51f35f2ff7
subject/topic: Rename empty_subject_placeholder.
2016-08-26 20:26:24 -07:00
Tomasz Kolek
5c82e53b9a
Move checking all/everyone message to util.js module.
...
Create is_all_or_everyone_mentioned function in util.js.
2016-08-18 16:10:09 -07:00
Brock Whittaker
6936d49202
Live update new avatars across users.
...
This sends an event when a new avatar is uploaded that refreshes the
avatar for all browser clients without the need to reload the browser.
Fixes : #1359 .
2016-08-18 15:32:29 -07:00
Tim Abbott
7736925d5b
compose: Fix sending PMs to Zephyr users.
2016-08-10 15:36:00 -07:00
Tim Abbott
375551aaa6
Clean up most hardcoding of mit.edu domain checks.
...
This moves all this code to be gated on a few virtual realm settings.
2016-07-26 20:30:12 -07:00
Vishnu Ks
e4b72c3a65
Move respond_to_message to compose.js.
2016-06-29 13:04:02 -07:00
Umair Khan
6fb0baaa25
Mark strings translatable.
...
Following strings are marked translatable:
- All strings which are passed to `button.text` or which affect the
text of buttons.
- All strings passed to `placeholder`.
- All strings passed to `compose_error`.
Fixes #969
2016-06-13 09:03:56 -07:00
Vishnu Ks
77ec6217eb
Add validation for private message recipients.
...
The function will reject messages where recipients aren't either a
member of the realm or a member of cross_realm_user_emails.
Fixes : #930 .
2016-06-11 11:24:45 -07:00
Vishnu Ks
a717c7df18
Seperate extract PM recipients as function.
2016-06-11 11:22:22 -07:00
Caroline Liu
60e5140406
Add warning for @all / @everyone.
...
* The warning contains a count of the number of people in the stream.
* An error appears if the warning is ignored and the user tries to
send the message anyway.
* The message cannot be sent until the warning is acknowledged or @all
/ @everyone is removed.
* This only applies to stream messages and not private messages.
Fixes #853 .
2016-06-09 14:38:58 -07:00
Tim Abbott
f9951bb1ca
Fix uploading files when using Zulip in another language.
...
Apparently, relatively URLs in our javascript no longer work.
2016-06-09 11:57:29 -07:00
Allie Jones
1bd1291f3c
Replace json/send_message endpoint usage with json/message.
2015-12-12 18:14:08 -08:00
Tim Abbott
05acd510c0
Make reload save options required explicit arguments.
2015-11-30 08:49:39 -08:00
Chris Chapman
44a9e1dff5
Fix for setting file upload size through settings file.
...
(Slightly tweaked by Tim Abbott to change the variable name, docs, and
default values).
Fixes #276 .
2015-11-24 06:06:46 -08:00
Tim Abbott
45a8b050ac
Change get_events restart log notices to log level (not error).
...
(imported from commit 52c3828d1c880545303f00bdf68585bdac844599)
2015-09-25 03:57:39 -07:00
David Roe
90e2f5053f
Add mandatory topics as a realm option.
...
(imported from commit 929a884b8610669aa24a167367b899683e33a045)
2015-08-20 15:29:45 -07:00
Zev Benjamin
466a678c2c
Remove "More messages below" indicator
...
It's been very buggy for a while, has limited usefulness compared with
unread counts, and profiling over the weekend indicates that it's very
slow.
(imported from commit 716fe47f2bbec1bd8a6e4d265ded5c64efe2ad5c)
2015-03-30 15:44:36 -07:00
Steve Howell
be2a1c2893
Move resizing code to resize.js.
...
(imported from commit b6df0007307872751e1a4200af740076e08b5c11)
2014-03-14 20:48:55 -04:00
Steve Howell
3889edd824
Move xhr_error_message() into channel.js
...
(imported from commit c68c2d475b5673a3dd5f68c75624dfcfe56728ca)
2014-03-14 20:48:53 -04:00
Tim Abbott
30056197a6
Move report_as_received to compose.js.
...
(imported from commit 29a309aa0597f17d82277901bcf5d38c680c9b94)
2014-02-03 13:32:02 -05:00
Tim Abbott
1eb294ed11
Rename get_updates to get_events in the frontend.
...
We did this rename on the backend ages ago.
(imported from commit 11bdf6aa08d932fe2586de282f6174e3dba7267a)
2014-01-30 17:23:52 -05:00
Tim Abbott
a7b1b29bf0
Move get_updates into a module.
...
(imported from commit 9a6c0ab1e76dd96abad8626bc5b1fdbd234b2645)
2014-01-30 15:57:28 -05:00
Leo Franchi
063484a917
Only clear the compose box if a message was locally echoed
...
(imported from commit a90a566f61e939e34eab9666743848e47c122400)
2014-01-24 14:01:18 -05:00
Leo Franchi
e24dcb3952
Report proper displayed/receive time and local echo data
...
(imported from commit 63aba6ef05b1a55d61e975831ebbaa074f8ea74f)
2014-01-23 16:28:58 -05:00
Leo Franchi
c3f798297e
Show message failure message on hover of error
...
(imported from commit 8379c3c35c612d3609d2ab378eb6ca2f7ec120b1)
2014-01-23 16:28:55 -05:00
Leo Franchi
00f64113e9
Support locally echoing messages when sending
...
(imported from commit 00b5c5f9b933d119553c32cadff0f17b9f7c2879)
2014-01-23 16:28:55 -05:00
Leo Franchi
f5af245c09
Clear compose box immediately after message is sent
...
(imported from commit 07cf0ca34dea1a64c37261e153730a9564281b3b)
2014-01-23 16:28:54 -05:00
Tim Abbott
bc22b1eb16
Add support for topic narrows in our embedded narrow widget.
...
(imported from commit d3ef2db8e0903e445d9ecc2c28d9f249a0042bd9)
2014-01-16 18:05:35 -05:00