diff --git a/Source/Applications/openECA/openECAClient/AppDebug.config b/Source/Applications/openECA/openECAClient/AppDebug.config index 8f59f9564b..30a29f5239 100644 --- a/Source/Applications/openECA/openECAClient/AppDebug.config +++ b/Source/Applications/openECA/openECAClient/AppDebug.config @@ -20,7 +20,7 @@ - + diff --git a/Source/Applications/openECA/openECAClient/wwwroot/Scripts/io-mappings-scripts.js b/Source/Applications/openECA/openECAClient/wwwroot/Scripts/io-mappings-scripts.js index 246b9a95dc..9d297f3bd3 100644 --- a/Source/Applications/openECA/openECAClient/wwwroot/Scripts/io-mappings-scripts.js +++ b/Source/Applications/openECA/openECAClient/wwwroot/Scripts/io-mappings-scripts.js @@ -12,10 +12,10 @@ $(document).ready(function() { $("[data-toggle=\"tooltip\"]").tooltip(); }); -$(function() { - // Client function called from the dataHub when meta data gets received - dataHubClient.metaDataReceived = function() { - $(window).trigger("metaDataReceived"); +$(window).on("beforeHubConnected", function (event) { + // Client function called from the dataHub when meta data gets recieved + dataHubClient.metaDataReceived = function () { + $(window).trigger('metaDataReceived'); } });