diff --git a/app/assets/javascripts/repositories/repository_datatable.js b/app/assets/javascripts/repositories/repository_datatable.js index f868deffb..4e9225a92 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js +++ b/app/assets/javascripts/repositories/repository_datatable.js @@ -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(); });