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.

create_stream: Remove no longer required condition.

Aman Agrawal22e598715e8f
diff --git a/static/js/stream_create.js b/static/js/stream_create.js
index 019a8e3888b..b05b49ffd8d 100644
--- a/static/js/stream_create.js
+++ b/static/js/stream_create.js
@@ -244,17 +244,7 @@ exports.new_stream_clicked = function (stream_name) {
$("#create_stream_name").val(stream_name);
}
exports.show_new_stream_modal();
-
- // at less than 700px we have a @media query that when you tap the
- // .create_stream_button, the stream prompt slides in. However, when you
- // focus the button on that page, the entire app view jumps over to
- // the other tab, and the animation breaks.
- // it is unclear whether this is a browser bug or "feature", however what
- // is clear is that this shouldn't be touched unless you're also changing
- // the mobile @media query at 700px.
- if (window.innerWidth > 700) {
- $("#create_stream_name").trigger("focus");
- }
+ $("#create_stream_name").trigger("focus");
};
function clear_error_display() {