Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/projects/WorkboardCard.js
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | getNode: function() { | ||||
| var template = this.getColumn().getBoard().getCardTemplate(phid); | var template = this.getColumn().getBoard().getCardTemplate(phid); | ||||
| this._root = JX.$H(template).getFragment().firstChild; | this._root = JX.$H(template).getFragment().firstChild; | ||||
| JX.Stratcom.getData(this._root).objectPHID = this.getPHID(); | JX.Stratcom.getData(this._root).objectPHID = this.getPHID(); | ||||
| } | } | ||||
| return this._root; | return this._root; | ||||
| }, | }, | ||||
| isWorkboardHeader: function() { | |||||
| return false; | |||||
| }, | |||||
| redraw: function() { | redraw: function() { | ||||
| var old_node = this._root; | var old_node = this._root; | ||||
| this._root = null; | this._root = null; | ||||
| var new_node = this.getNode(); | var new_node = this.getNode(); | ||||
| if (old_node && old_node.parentNode) { | if (old_node && old_node.parentNode) { | ||||
| JX.DOM.replace(old_node, new_node); | JX.DOM.replace(old_node, new_node); | ||||
| } | } | ||||
| return this; | return this; | ||||
| } | } | ||||
| } | } | ||||
| }); | }); | ||||