Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/projects/WorkboardHeader.js
| Show All 21 Lines | members: { | ||||
| getHeaderKey: function() { | getHeaderKey: function() { | ||||
| return this._headerKey; | return this._headerKey; | ||||
| }, | }, | ||||
| getNode: function() { | getNode: function() { | ||||
| if (!this._root) { | if (!this._root) { | ||||
| var header_key = this.getHeaderKey(); | var header_key = this.getHeaderKey(); | ||||
| var board = this.getColumn().getBoard(); | |||||
| var template = board.getHeaderTemplate(header_key).getTemplate(); | |||||
| this._root = JX.$H(template).getFragment().firstChild; | |||||
| JX.Stratcom.getData(this._root).headerKey = header_key; | var root = this.getColumn().getBoard() | ||||
| .getHeaderTemplate(header_key) | |||||
| .newNode(); | |||||
| JX.Stratcom.getData(root).headerKey = header_key; | |||||
| this._root = root; | |||||
| } | } | ||||
| return this._root; | return this._root; | ||||
| }, | }, | ||||
| isWorkboardHeader: function() { | isWorkboardHeader: function() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| }); | }); | ||||