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.

compose: Remove empty message warning border after closing.

sbansal1999aad2f7c7c592
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index 7efc6d88995..de75fce3d11 100755
--- a/tools/test-js-with-node
+++ b/tools/test-js-with-node
@@ -231,7 +231,6 @@ EXEMPT_FILES = make_set(
"web/src/zulip.js",
"web/src/zulip_test.js",
"web/tests/lib/mdiff.js",
- "web/tests/lib/zjquery_element.js",
]
)
diff --git a/web/src/compose_actions.js b/web/src/compose_actions.js
index d0fce0468f6..0351a9da555 100644
--- a/web/src/compose_actions.js
+++ b/web/src/compose_actions.js
@@ -118,6 +118,7 @@ function clear_box() {
clear_textarea();
compose_validate.check_overflow_text();
$("#compose-textarea").removeData("draft-id");
+ $("#compose-textarea").toggleClass("invalid", false);
compose_ui.autosize_textarea($("#compose-textarea"));
compose_banner.clear_errors();
compose_banner.clear_warnings();