Finished meta data endpoint support and dump version number
Change-Id: I3b2fd0485a36978125b7d8f0353bfc651f501a5a
diff --git a/dev/js/src/match/info.js b/dev/js/src/match/info.js
index ed8facc..f30287b 100644
--- a/dev/js/src/match/info.js
+++ b/dev/js/src/match/info.js
@@ -151,10 +151,13 @@
* Receive meta data from server.
*/
getMetaData : function (cb) {
+
+ var match = this._match;
+
try {
KorAP.API.getTextInfo(
- this._match, {}, function (textResponse) {
-
+ match, {}, function (textResponse) {
+
if (textResponse === undefined) {
cb(null);
return;
@@ -175,7 +178,7 @@
// Add metainfo to matchview
cb(matchMetaClass.create(
- this._match, fields
+ match, fields
));
}
);
@@ -345,6 +348,10 @@
var that = this;
this.getMetaData(function (meta) {
+
+ if (meta === null)
+ return;
+
// Load data
metaTable.classList.remove('loading');