Clear removed_streams when we repopulate the subscriptions table

(imported from commit e9f90425b097f54188e4085828a3fed4c4885954)
This commit is contained in:
Zev Benjamin 2013-01-07 13:46:52 -05:00
parent a1b017eea6
commit f5e25d2e64
2 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,7 @@ exports.fetch = function () {
timeout: 10*1000,
success: function (data) {
$('#subscriptions_table tr').remove();
removed_streams = {};
if (data) {
var subscriptions = [];
$.each(data.subscriptions, function (index, data) {

View File

@ -509,6 +509,8 @@ $(function () {
hashchange.changehash(browser_url);
});
// TODO: We really want to show a spinner while we're fetching
// the subs
$('#sidebar a[href="#subscriptions"]').on('show', subs.fetch);
var settings_status = $('#settings-status');