mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
Rename compose.message -> compose.message_content to avoid confusion with new API
(imported from commit cce8baba49a4176bdb900a83006db3bf23bcd82b)
This commit is contained in:
@@ -94,7 +94,7 @@ exports.subject = function (newval) {
|
|||||||
return oldval;
|
return oldval;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.message = function (newval) {
|
exports.message_content = function (newval) {
|
||||||
var oldval = $.trim($("#new_message_content").val());
|
var oldval = $.trim($("#new_message_content").val());
|
||||||
if (newval !== undefined) {
|
if (newval !== undefined) {
|
||||||
$("#new_message_content").val(newval);
|
$("#new_message_content").val(newval);
|
||||||
@@ -167,7 +167,7 @@ function validate_stream_message() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exports.message() === "") {
|
if (exports.message_content() === "") {
|
||||||
compose_error("You have nothing to send!", $("#new_message_content"));
|
compose_error("You have nothing to send!", $("#new_message_content"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ function validate_huddle_message() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exports.message() === "") {
|
if (exports.message_content() === "") {
|
||||||
compose_error("You have nothing to send!", $("#new_message_content"));
|
compose_error("You have nothing to send!", $("#new_message_content"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -543,7 +543,7 @@ function reload_app_preserving_compose(send_after_reload) {
|
|||||||
url += "+msg_type=huddle";
|
url += "+msg_type=huddle";
|
||||||
url += "+recipient=" + encodeURIComponent(compose.recipient());
|
url += "+recipient=" + encodeURIComponent(compose.recipient());
|
||||||
}
|
}
|
||||||
url += "+msg="+ encodeURIComponent(compose.message());
|
url += "+msg="+ encodeURIComponent(compose.message_content());
|
||||||
|
|
||||||
window.location.replace(url);
|
window.location.replace(url);
|
||||||
do_reload_app();
|
do_reload_app();
|
||||||
|
|||||||
Reference in New Issue
Block a user