show loading spinner when loading table

This commit is contained in:
Max Ogden
2011-08-03 12:21:35 -04:00
parent db47d2e420
commit abfb0bbc7e
5 changed files with 7 additions and 2 deletions

View File

@@ -183,7 +183,9 @@ var recline = function() {
}
function initializeTable(offset) {
$('.large-loader').show();
couch.request({url: app.baseURL + 'api/headers'}).then(function ( headers ) {
$('.large-loader').hide();
app.headers = headers;
app.csvUrl = app.baseURL + 'api/csv?headers=' + escape(JSON.stringify(headers));