diff --git a/ka.html b/ka.html index faee665..7b0dca5 100644 --- a/ka.html +++ b/ka.html @@ -24,7 +24,7 @@ Bitte fülle dieses Formular aus ...
- diff --git a/kaform.js b/kaform.js index 3a486f4..144e7c9 100644 --- a/kaform.js +++ b/kaform.js @@ -88,113 +88,34 @@ function addTableRow(){ -$K.add('module','kaform', { - init: function(app,context){ - this.app = app; - - // getting context and the module element - this.context = context; - this.$element = context.getElement(); - }, - - hello: function(){ - alert ("hello function of kaform"); - }, - - start: function() - { +$K.add('module', 'kaform', { + init: function(app, context) + { + this.app = app; + }, + // catch event + onmessage: { + tabs: { + opened: function(sender) + { + console.log('Tab box is ',sender.getActiveBox()); + } + } + }, - /*this.$element.on('keydown.kube.editable', this._hui.bind(this)); - this.$element.on('paste.kube.editable', this._hui.bind(this)); - this.$element.on('blur.kube.editable', this._hui.bind(this)); - */ -// alert(this.$element); -// this.$element.on('click', this.addRow.bind(this)); - this._build(); - }, - - addRow: function() - { - - var $node = $K.dom('#tabbody'); - // create a new table row with id - var element = document.createElement('tr'); - element.setAttribute("id", "trow"+nextRowId); - - var e=""; - - // add column for position no - e += '