Added EventListener for graying corpus statistic(plus renaming)
Change-Id: I41da48f92a9f5abccb6a64a9a4f2c1192e713327
(cherry picked from commit b990f6ad18afb79e10e4c88b505e4429aeaa07e2)
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 34a838a..d94b1b5 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -90,6 +90,10 @@
var input = d.getElementById('collection');
var vc = KorAP.vc;
+
+ document.addEventListener('vcChange', function (e) {
+ vc.checkStatActive(e.detail);
+ }, false);
// Add vc name object
if (input) {