mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
Don't insert a link of "undefined" if the process fails.
(imported from commit ba7d2c8bc9a280225862bd5edce302735d916e61)
This commit is contained in:
@@ -519,6 +519,9 @@ $(function () {
|
|||||||
$("#error-msg").text(msg);
|
$("#error-msg").text(msg);
|
||||||
},
|
},
|
||||||
uploadFinished: function (i, file, response, time) {
|
uploadFinished: function (i, file, response, time) {
|
||||||
|
if (response.uri === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var textbox = $("#new_message_content");
|
var textbox = $("#new_message_content");
|
||||||
textbox.val(textbox.val() + " " + response.uri);
|
textbox.val(textbox.val() + " " + response.uri);
|
||||||
$("#new_message_content").trigger("autosize");
|
$("#new_message_content").trigger("autosize");
|
||||||
|
|||||||
Reference in New Issue
Block a user