From 9507ed8a05543d95141525f9c2ca5af14d7e7dad Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 28 Oct 2016 16:10:59 -0700 Subject: [PATCH] subs: Move show_settings_for earlier in file. --- static/js/subs.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/static/js/subs.js b/static/js/subs.js index db5b313d3e..b16efa61c5 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -229,10 +229,6 @@ exports.rerender_subscribers_count = function (sub) { $(".stream-row[data-stream-id='" + id + "'] .subscriber-count").text(sub.subscriber_count); }; -exports.show_settings_for = function (stream_name) { - settings_for_sub(stream_data.get_sub(stream_name)).collapse('show'); -}; - function add_email_hint(row, email_address_hint_content) { // Add a popover explaining stream e-mail addresses on hover. var hint_id = "#email-address-hint-" + row.stream_id; @@ -368,6 +364,11 @@ function show_subscription_settings(sub_row) { sub_row.find('.subscription_settings :input').removeAttr('tabindex'); } +exports.show_settings_for = function (stream_name) { + settings_for_sub(stream_data.get_sub(stream_name)).collapse('show'); +}; + + exports.mark_subscribed = function (stream_name, attrs) { var sub = stream_data.get_sub(stream_name);