From 78e902f31629e91b890a3a498c30293812e32a0e Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 15 Feb 2018 11:06:59 +0100 Subject: [PATCH] fixes few Hound alerts --- app/assets/javascripts/repositories/repository_datatable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/repositories/repository_datatable.js b/app/assets/javascripts/repositories/repository_datatable.js index d11c0b6d1..23aadea84 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js +++ b/app/assets/javascripts/repositories/repository_datatable.js @@ -451,8 +451,9 @@ var RepositoryDatatable = (function(global) { }); $('#assigned-repo-records').on('click', function() { + var promiseReload; viewAssigned = 'assigned'; - var promiseReload = new Promise(function(resolve) { + promiseReload = new Promise(function(resolve) { resolve(TABLE.ajax.reload()); }); promiseReload.then(function() { @@ -460,8 +461,9 @@ var RepositoryDatatable = (function(global) { }) }); $('#all-repo-records').on('click', function() { + var promiseReload; viewAssigned = 'all'; - var promiseReload = new Promise(function(resolve) { + promiseReload = new Promise(function(resolve) { resolve(TABLE.ajax.reload()); }); promiseReload.then(function() {