Added close button to annotation table
Change-Id: I639ecd3a59513658e32d646ddd5740dd76c287b5
diff --git a/dev/js/src/match/table.js b/dev/js/src/match/table.js
index 46f2890..67e20cd 100644
--- a/dev/js/src/match/table.js
+++ b/dev/js/src/match/table.js
@@ -2,6 +2,7 @@
* Table representation of morphological
* annotations of a match.
*/
+// TODO: Create base object for all matchinfo classes!
define(["util"], function () {
const _TermRE = new RegExp("^(?:([^\/]+?)\/)?([^:]+?):(.+?)$");
const d = document;
@@ -70,6 +71,7 @@
return this._info[pos][foundry + '/' + layer]
},
+
// Parse the snippet
_parse : function (children) {
@@ -149,7 +151,11 @@
return this._element;
// First the legend table
- var table = d.createElement('table');
+ var wrap = d.createElement('div');
+
+ var table = wrap.addE('table');
+
+ this._element = wrap;
// Single row in head
var tr = table.addE('thead').addE('tr');
@@ -239,7 +245,7 @@
};
};
- return this._element = table;
- }
+ return this._element;
+ },
};
});