From 85634b2fb66d4c5b231f532a79454ff0573f921a Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Mon, 7 Aug 2017 14:04:39 +0200 Subject: [PATCH] Add 'off' before setting export button to 'on' --- app/assets/javascripts/repositories/repository_datatable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); });