diff --git a/zephyr/static/js/subs.js b/zephyr/static/js/subs.js index c686290be6..6f3aac305f 100644 --- a/zephyr/static/js/subs.js +++ b/zephyr/static/js/subs.js @@ -155,7 +155,9 @@ exports.fetch_colors = function () { }); }; -exports.fetch = function () { +exports.setup_page = function () { + // TODO: We really want to show a spinner while we're fetching + // the subs $.ajax({ type: 'POST', url: '/json/subscriptions/list', diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 64b99f84a4..f1fa1f873a 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -509,9 +509,7 @@ $(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); + $('#sidebar a[href="#subscriptions"]').on('show', subs.setup_page); var settings_status = $('#settings-status'); $("#settings-change-box form").ajaxForm({