Move insert_syntax_and_focus() to compose_ui.js.

This change also removes a couple lines of test code that
weren't really testing anything.
This commit is contained in:
Steve Howell
2017-11-09 07:57:58 -08:00
committed by Tim Abbott
parent 19bc55aa45
commit 12dc567a89
5 changed files with 11 additions and 15 deletions

View File

@@ -656,7 +656,7 @@ exports.initialize = function () {
var video_call_id = util.random_int(100000000000000, 999999999999999);
var video_call_link = 'https://meet.jit.si/' + video_call_id;
var video_call_link_text = '[' + _('Click to join video call') + '](' + video_call_link + ')';
compose_state.insert_syntax_and_focus(video_call_link_text);
compose_ui.insert_syntax_and_focus(video_call_link_text);
});
$("#compose").on("click", "#markdown_preview", function (e) {