Hide subscription settings on unsubscribe

(imported from commit 28f08ffdf5ffc4af697563df19b4facb28e9c681)
This commit is contained in:
Zev Benjamin 2013-01-23 13:51:47 -05:00
parent e03fe9e3f1
commit 4dbd51033a
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ function mark_unsubscribed(stream_name) {
} else if (sub.subscribed) {
sub.subscribed = false;
button_for_sub(sub).text("Subscribe").addClass("btn-primary");
var settings = settings_for_sub(sub);
if (settings.hasClass('in')) {
settings.collapse('hide');
}
} else {
// Already unsubscribed
return;