Bug 35251: Update checkout count when refreshing issue table
1. Have some checkouts 2. Go to the issue-table and select some of those checkouts and check them in. 3. Look at the tab, Checkouts(X) 4. This is not updated and now shows an incorrect number of checkouts. 4. APPLY PATCH, clear browser cache/ 5. Try again, now when the table reloads the 'Checkouts(X)' tab should be correctly updated. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
41daf4db99
commit
0faa48e89a
|
|
@ -4,7 +4,7 @@
|
|||
[% WRAPPER tabs id= "finesholdsissues" %]
|
||||
[% WRAPPER tabs_nav %]
|
||||
[% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %]
|
||||
<span>Checkouts ([% issuecount || 0 | html %])</span>
|
||||
<span>Checkouts (<span class="checkout_count">[% issuecount || 0 | html %]</span>)</span>
|
||||
[% END %]
|
||||
|
||||
[% IF relatives_issues_count %]
|
||||
|
|
|
|||
|
|
@ -316,6 +316,8 @@ $(document).ready(function() {
|
|||
$('.checkin[value="'+checked+'"]').prop('checked' , true );
|
||||
});
|
||||
}
|
||||
var checkout_count = table.page.info().recordsTotal;
|
||||
$('.checkout_count').text(checkout_count);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue