Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Show spinner while generating export
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijs Stegehuis committed Sep 2, 2015
1 parent e005e77 commit 5579762
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions resources/js/export.js
Expand Up @@ -40,5 +40,9 @@ $(function() {
$('table.sortable tbody').sortable().disableSelection();

}

});

$('.js-btn-export').click(function(){
$('.js-export-spinner').removeClass('hidden');
});

});
5 changes: 4 additions & 1 deletion templates/_map.twig
Expand Up @@ -63,7 +63,10 @@
</tbody>
<tfoot>
<tr>
<td colspan="3" style="border-bottom: none"><input type="submit" class="btn submit" value="{{ 'Export'|t }}"></td>
<td colspan="3" style="border-bottom: none; padding-top:20px">
<input type="submit" class="btn submit js-btn-export" value="{{ 'Export'|t }}">
<div class="spinner js-export-spinner hidden"></div>
</td>
</tr>
</tfoot>
</table>
Expand Down

0 comments on commit 5579762

Please sign in to comment.