Fix "close" button in batch lock dialog

CL:1615 introduced this regression.

Fixed: twpowertools:54
Change-Id: Ia7d1c4651c01f18c8907bea00de0493c09ae7b34
diff --git a/src/contentScripts/communityConsole/batchLock.js b/src/contentScripts/communityConsole/batchLock.js
index ce14d80..0d939fa 100644
--- a/src/contentScripts/communityConsole/batchLock.js
+++ b/src/contentScripts/communityConsole/batchLock.js
@@ -71,14 +71,19 @@
             });
             break;
 
+          case 'cancel':
           case 'close':
             btn.addEventListener('click', _ => {
               if (btn.classList.contains('is-disabled')) return;
-              var refreshButton = document.querySelector('.app-title-button');
-              if (refreshButton == null)
-                window.location.reload();
-              else
-                refreshButton.click();
+
+              if (action == 'close') {
+                var refreshButton = document.querySelector('.app-title-button');
+                if (refreshButton == null)
+                  window.location.reload();
+                else
+                  refreshButton.click();
+              }
+
               modal.classList.remove('visible');
               modal.style.display = 'none';
               removeChildNodes(modal);