Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/projects/WorkboardCard.js
Show All 23 Lines | getColumn: function() { | ||||
return this._column; | return this._column; | ||||
}, | }, | ||||
setColumn: function(column) { | setColumn: function(column) { | ||||
this._column = column; | this._column = column; | ||||
}, | }, | ||||
getProperties: function() { | getProperties: function() { | ||||
return this.getColumn().getBoard().getObjectProperties(this.getPHID()); | return this.getColumn().getBoard().getCardTemplate(this.getPHID()) | ||||
.getObjectProperties(); | |||||
}, | }, | ||||
getPoints: function() { | getPoints: function() { | ||||
return this.getProperties().points; | return this.getProperties().points; | ||||
}, | }, | ||||
getStatus: function() { | getStatus: function() { | ||||
return this.getProperties().status; | return this.getProperties().status; | ||||
}, | }, | ||||
getPriority: function(order) { | getPriority: function(order) { | ||||
return this.getProperties().priority; | return this.getProperties().priority; | ||||
}, | }, | ||||
getNode: function() { | getNode: function() { | ||||
if (!this._root) { | if (!this._root) { | ||||
var phid = this.getPHID(); | var phid = this.getPHID(); | ||||
var template = this.getColumn().getBoard().getCardTemplate(phid); | |||||
this._root = JX.$H(template).getFragment().firstChild; | |||||
JX.Stratcom.getData(this._root).objectPHID = this.getPHID(); | var root = this.getColumn().getBoard() | ||||
.getCardTemplate(phid) | |||||
.newNode(); | |||||
JX.Stratcom.getData(root).objectPHID = phid; | |||||
this._root = root; | |||||
} | } | ||||
return this._root; | return this._root; | ||||
}, | }, | ||||
isWorkboardHeader: function() { | isWorkboardHeader: function() { | ||||
return false; | return false; | ||||
}, | }, | ||||
redraw: function() { | redraw: function() { | ||||
Show All 14 Lines |