Rename subs.fetch -> subs.setup_page

(imported from commit 385ff00cc5ebaafe9127974471ed2d55f0cdf546)
This commit is contained in:
Zev Benjamin 2013-01-10 14:30:15 -05:00
parent 717513cc07
commit 97e7cae796
2 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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({