(function () { $(document).on('pageshowready', "#logPage", function () { var page = this; var apiClient = ApiClient; apiClient.getJSON(apiClient.getUrl('System/Logs')).done(function (logs) { var html = ''; html += ''; Events.trigger($('.serverLogs', page).html(html)[0], 'create'); }); }); })();