Add 'off' before setting export button to 'on'

This commit is contained in:
Luka Murn 2017-08-07 14:04:39 +02:00
parent a9b74e3b95
commit 85634b2fb6

View file

@ -734,10 +734,10 @@ var RepositoryDatatable = (function(global) {
if (!events || !events.click) {
$('#exportRepositoriesButton').removeClass('disabled');
$('#exportRepositoriesButton').prop('disabled', false);
$('#exportRepositoriesButton').on('click', function() {
$('#exportRepositoriesButton').off('click').on('click', function() {
$('#exportRepositoryModal').modal('show');
});
$('#export-repositories').on('click', function() {
$('#export-repositories').off('click').on('click', function() {
animateSpinner(null, true);
$('#form-export').submit();
});