Gantt.js (PHProjekt-6.2.0) | : | Gantt.js (PHProjekt-6.2.1) | ||
---|---|---|---|---|
skipping to change at line 172 | skipping to change at line 172 | |||
this.showDialog(text, dialogType, nodeToChange, currentNode, posMin, pos Max); | this.showDialog(text, dialogType, nodeToChange, currentNode, posMin, pos Max); | |||
}, | }, | |||
getParentName:function(ownName) { | getParentName:function(ownName) { | |||
// summary: | // summary: | |||
// Estimate parent object name scan in the list for match. | // Estimate parent object name scan in the list for match. | |||
// description: | // description: | |||
// Estimate parent object name scan in the list for match. | // Estimate parent object name scan in the list for match. | |||
var nameTokens = ownName.split('|'); | var nameTokens = ownName.split('|'); | |||
var parentId = nameTokens[0].split(':'); | var parentId = nameTokens[0].split(':'); | |||
if (parseInt(parentId[1]) != 0) { | if (parseInt(parentId[1], 10) != 0) { | |||
parentId = new String('|own:'+parentId[1]); | parentId = new String('|own:'+parentId[1]); | |||
// Serach the name in the list | // Serach the name in the list | |||
var listIndex = this.findArrayIndex(parentId); | var listIndex = this.findArrayIndex(parentId); | |||
// Return name if found, otherwise false | // Return name if found, otherwise false | |||
return (listIndex > -1) ? this.projectDataBuffer[listIndex][0] : fal se; | return (listIndex > -1) ? this.projectDataBuffer[listIndex][0] : fal se; | |||
} | } | |||
return false; | return false; | |||
}, | }, | |||
convertIndex2DateString:function(position) { | convertIndex2DateString:function(position) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |