},
toggleLoading: function (state) {
- this.$('.token-list').toggleClass('icon-loading', state);
+ this.$('table').toggleClass('icon-loading', state);
},
_toggleHeader: function (show) {
<div id="sessions" class="section">
<h2><?php p($l->t('Sessions'));?></h2>
<span class="hidden-when-empty"><?php p($l->t('Web, desktop and mobile clients currently logged in to your account.'));?></span>
- <table>
+ <table class="icon-loading">
<thead class="token-list-header">
<tr>
<th><?php p($l->t('Device'));?></th>
<th></th>
</tr>
</thead>
- <tbody class="token-list icon-loading">
+ <tbody class="token-list">
</tbody>
</table>
</div>
<div id="apppasswords" class="section">
<h2><?php p($l->t('App passwords'));?></h2>
<p><?php p($l->t('Passcodes that give an app or device permissions to access your account.'));?></p>
- <table>
+ <table class="icon-loading">
<thead class="hidden-when-empty">
<tr>
<th><?php p($l->t('Name'));?></th>
<th></th>
</tr>
</thead>
- <tbody class="token-list icon-loading">
+ <tbody class="token-list">
</tbody>
</table>
<div id="app-password-form">