mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Make double-clicking on a message highlight the message.
Addresses Trac #4. (imported from commit d920f473e94e5141f41e887ffae74b3e21f862a6)
This commit is contained in:
@@ -1035,6 +1035,12 @@ $(function () {
|
|||||||
clicking = false;
|
clicking = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#main_div").on("dblclick", ".messagebox", function (e) {
|
||||||
|
var selection = window.getSelection();
|
||||||
|
var content = $(this).closest(".message_row").find(".message_content");
|
||||||
|
selection.selectAllChildren(content[0]);
|
||||||
|
});
|
||||||
|
|
||||||
$("#main_div").on("mousedown", ".messagebox", mousedown);
|
$("#main_div").on("mousedown", ".messagebox", mousedown);
|
||||||
$("#main_div").on("mousemove", ".messagebox", mousemove);
|
$("#main_div").on("mousemove", ".messagebox", mousemove);
|
||||||
$("#main_div").on("mouseover", ".message_row", function (e) {
|
$("#main_div").on("mouseover", ".message_row", function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user