diff --git a/zephyr/static/js/subs.js b/zephyr/static/js/subs.js index 892d9235f9..bf61f524c3 100644 --- a/zephyr/static/js/subs.js +++ b/zephyr/static/js/subs.js @@ -52,7 +52,7 @@ exports.fetch = function () { }); }; -exports.add = function (stream, prompt_button) { +exports.add_for_send = function (stream, prompt_button) { $.ajax({ type: 'POST', url: '/json/subscriptions/add', diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 1dcbbd38df..a90dd9e37a 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -255,12 +255,12 @@ $(function () { // Prepare the click handler for subbing to a new stream to which // you have composed a message. $('#create-it').click(function () { - subs.add(compose.stream_name(), $('#stream-dne')); + subs.add_for_send(compose.stream_name(), $('#stream-dne')); }); // Prepare the click handler for subbing to an existing stream. $('#sub-it').click(function () { - subs.add(compose.stream_name(), $('#stream-nosub')); + subs.add_for_send(compose.stream_name(), $('#stream-nosub')); }); var throttled_scrollhandler = $.throttle(50, function(e) {