From 1690d8ebe3deeea7a3bfc7d4d92c813b11673e64 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 22 Jun 2017 16:47:50 +0200 Subject: [PATCH] removed reload on hide modal --- app/assets/javascripts/repositories/index.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/assets/javascripts/repositories/index.js b/app/assets/javascripts/repositories/index.js index 2e568aad3..d6150415e 100644 --- a/app/assets/javascripts/repositories/index.js +++ b/app/assets/javascripts/repositories/index.js @@ -7,14 +7,6 @@ location.reload(); } - function reloadOnHidden() { - $('#modal-import-records') - .on('hidden.bs.modal', function() { - animateSpinner(); - location.reload(); - }); - } - function initImportRecordsModal() { $('#importRecordsButton').off().on('click', function() { $('#modal-import-records').modal('show'); @@ -52,7 +44,6 @@ pane.tab('show').promise().done(function() { initImportRecordsModal(); }); - reloadOnHidden() }, error: function (error) { // TODO