From 06ffd206aebe06af49c89f7e57d1241e0bd0832b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 10 Oct 2012 10:18:51 -0400 Subject: [PATCH] Rename respond_to_zephyr to respond_to_message. (imported from commit 34e7793601ad6f41d71be2e2060c58138b9d3b53) --- tools/jslint/check-all.js | 2 +- zephyr/static/js/hotkey.js | 4 ++-- zephyr/static/js/ui.js | 2 +- zephyr/static/js/zephyr.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/jslint/check-all.js b/tools/jslint/check-all.js index 7b7bc9f865..0d597fe37c 100644 --- a/tools/jslint/check-all.js +++ b/tools/jslint/check-all.js @@ -39,7 +39,7 @@ var globals = // zephyr.js + ' message_array message_dict' + ' status_classes clear_table add_to_table instance_list' - + ' keep_pointer_in_view respond_to_zephyr' + + ' keep_pointer_in_view respond_to_message' + ' select_message select_message_by_id' + ' scroll_to_selected select_and_show_by_id' + ' selected_message selected_message_id' diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index fff6c18b31..38bd5efca5 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -81,10 +81,10 @@ function process_hotkey(code) { compose_button(); return process_compose_hotkey; case 114: // 'r': respond to zephyr - respond_to_zephyr(); + respond_to_message(); return process_hotkey; case 82: // 'R': respond to author - respond_to_zephyr("personal"); + respond_to_message("personal"); return process_hotkey; case 103: // 'g': start of "go to" command return process_goto_hotkey; diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 38a6d2ce8d..f5f96e014c 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -9,7 +9,7 @@ function register_onclick(zephyr_row, zephyr_id) { if (!(clicking && mouse_moved)) { // Was a click (not a click-and-drag). select_message_by_id(zephyr_id); - respond_to_zephyr(); + respond_to_message(); } mouse_moved = false; clicking = false; diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index d83784d35d..3d2034516a 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -113,7 +113,7 @@ function get_huddle_recipient_names(zephyr) { return recipient; } -function respond_to_zephyr(reply_type) { +function respond_to_message(reply_type) { var zephyr, tabname; zephyr = message_dict[selected_message_id]; if (zephyr.type === "class") {