(function () { function reload(page) { Dashboard.showLoadingMsg(); ApiClient.getJSON(ApiClient.getUrl("Notifications/Types")).done(function (list) { var html = ''; $('.notificationList', page).html(html).trigger('create'); Dashboard.hideLoadingMsg(); }); } $(document).on('pageshow', "#notificationSettingsPage", function () { var page = this; reload(page); }); })(jQuery, window);