mirror of https://github.com/zulip/zulip.git
Rename subs.fetch -> subs.setup_page
(imported from commit 385ff00cc5ebaafe9127974471ed2d55f0cdf546)
This commit is contained in:
parent
717513cc07
commit
97e7cae796
|
@ -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',
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue