subs: Move show_settings_for earlier in file.

This commit is contained in:
Tim Abbott 2016-10-28 16:10:59 -07:00
parent c10fd243f1
commit 9507ed8a05
1 changed files with 5 additions and 4 deletions

View File

@ -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);