Adopt panel system in match spec
Change-Id: I068c9f3ece057ce7eb782575fc5233d00985c02c
diff --git a/dev/js/src/panel/match.js b/dev/js/src/panel/match.js
index aba8873..2b220d3 100644
--- a/dev/js/src/panel/match.js
+++ b/dev/js/src/panel/match.js
@@ -35,7 +35,8 @@
var a = this.actions;
- // Ugly hack!
+ // TODO:
+ // Ugly hack!
var cl= a.element().classList;
cl.remove('matchinfo');
cl.add('button-matchinfo');
@@ -67,7 +68,7 @@
var tm = KorAP.TreeMenu;
// Set panel
- tm.info(this);
+ tm.panel(this);
// Reread list
tm.readItems(this._treeMenuList());
@@ -107,8 +108,7 @@
/**
* Add Tree view to panel
*/
- // TODO: Rename to addTree() - this is called in treeitem.js
- showTree : function (foundry, layer, type) {
+ addTree : function (foundry, layer, type) {
this.add(
relationsView.create(this._match, foundry, layer, type)
);