Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic_edit: Rename `inline_topic_edit` to `move_messages_edit_topic`.
Hardik Dharmanicfbcbe901a29
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.jsindex b7d58324d4b..20aaf4115ea 100644--- a/web/src/stream_popover.js+++ b/web/src/stream_popover.js@@ -325,7 +325,7 @@ export function build_move_topic_to_stream_popover(}function set_stream_topic_typeahead() {- const $topic_input = $("#move_topic_form .inline_topic_edit");+ const $topic_input = $("#move_topic_form .move_messages_edit_topic");const new_stream_id = Number(stream_widget.value(), 10);const new_stream_name = sub_store.get(new_stream_id).name;$topic_input.data("typeahead").unlisten();@@ -340,7 +340,7 @@ export function build_move_topic_to_stream_popover(function move_topic_post_render() {$("#move_topic_modal .dialog_submit_button").prop("disabled", true);- const $topic_input = $("#move_topic_form .inline_topic_edit");+ const $topic_input = $("#move_topic_form .move_messages_edit_topic");composebox_typeahead.initialize_topic_edit_typeahead($topic_input,current_stream_name,@@ -376,7 +376,7 @@ export function build_move_topic_to_stream_popover(stream_widget.setup();$("#select_stream_widget .dropdown-toggle").prop("disabled", disable_stream_input);- $("#move_topic_modal .inline_topic_edit").on("input", () => {+ $("#move_topic_modal .move_messages_edit_topic").on("input", () => {update_submit_button_disabled_state(stream_widget.value());});}diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 10d3290daaa..04ce5433c64 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -827,7 +827,7 @@ ul {.dropdown-list-widget,.stream_header_colorblock,- .inline_topic_edit {+ .move_messages_edit_topic {margin-bottom: 10px;}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex b06eb9394a6..b8667727f8b 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -1698,7 +1698,7 @@ div.focused_table {}}-#inline_topic_edit {+.inline_topic_edit {margin-bottom: 5px;width: 206px;@@ -1722,7 +1722,7 @@ div.focused_table {justify-content: flex-start;}-#inline_topic_edit:focus,+.inline_topic_edit:focus,#message_edit_topic:focus {outline: none;}diff --git a/web/templates/move_topic_to_stream.hbs b/web/templates/move_topic_to_stream.hbsindex 50b1ada7078..0b2557a5980 100644--- a/web/templates/move_topic_to_stream.hbs+++ b/web/templates/move_topic_to_stream.hbs@@ -17,8 +17,8 @@</div><i class="fa fa-angle-right" aria-hidden="true"></i>{{/unless}}- <input name="new_topic_name" type="text" class="inline_topic_edit modal_text_input" autocomplete="off" value="{{topic_name}}" {{#if disable_topic_input}}disabled{{/if}} />- <input name="old_topic_name" type="hidden" class="inline_topic_edit" value="{{topic_name}}" />+ <input name="new_topic_name" type="text" class="move_messages_edit_topic modal_text_input" autocomplete="off" value="{{topic_name}}" {{#if disable_topic_input}}disabled{{/if}} />+ <input name="old_topic_name" type="hidden" class="move_messages_edit_topic" value="{{topic_name}}" /><input name="current_stream_id" type="hidden" value="{{current_stream_id}}" />{{#if from_message_actions_popover}}<select class="message_edit_topic_propagate modal_select bootstrap-focus-style">diff --git a/web/templates/topic_edit_form.hbs b/web/templates/topic_edit_form.hbsindex 9b2e38a916c..7c864952c20 100644--- a/web/templates/topic_edit_form.hbs+++ b/web/templates/topic_edit_form.hbs@@ -1,7 +1,7 @@{{! Client-side Handlebars template for rendering the topic edit form. }}<form id="topic_edit_form">- <input type="text" value="" class="inline_topic_edit header-v" id="inline_topic_edit"+ <input type="text" value="" class="inline_topic_edit header-v"autocomplete="off" maxlength="{{ max_topic_length }}" /><button type="button" class="topic_edit_save small_square_button animated-purple-button"><i class="fa fa-check" aria-hidden="true"></i></button><button type="button" class="topic_edit_cancel small_square_button small_square_x"><i class="fa fa-remove" aria-hidden="true"></i></button>