Exclude JS for refreshing batch unless it's relevant
This commit is contained in:
parent
50d6f1f95a
commit
aa4051a7cd
|
@ -16,12 +16,14 @@
|
|||
location.href = '${url('{}.worksheet'.format(route_prefix), uuid=batch.uuid)}';
|
||||
});
|
||||
% endif
|
||||
$('#refresh-data').click(function() {
|
||||
$(this)
|
||||
.button('option', 'disabled', true)
|
||||
.button('option', 'label', "Working, please wait...");
|
||||
location.href = '${url('{}.refresh'.format(route_prefix), uuid=batch.uuid)}';
|
||||
});
|
||||
% if master.batch_refreshable(batch) and request.has_perm('{}.refresh'.format(permission_prefix)):
|
||||
$('#refresh-data').click(function() {
|
||||
$(this)
|
||||
.button('option', 'disabled', true)
|
||||
.button('option', 'label', "Working, please wait...");
|
||||
location.href = '${url('{}.refresh'.format(route_prefix), uuid=batch.uuid)}';
|
||||
});
|
||||
% endif
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue