// changed at Thu Oct 27 2011 15:47:19 GMT+0200 (CEST) by sebastian.stamm
this.addScript(function serialize() {
var serializedObject = {
title: this.filterTitle(),
description: this.filterDescription(),
position: {x:this.owner.getPosition().x, y: this.owner.getPosition().y},
extent: {x:this.owner.getExtent().x, y: this.owner.getExtent().y},
borderColor: {r: this.shape.getBorderColor().r, g: this.shape.getBorderColor().g, b: this.shape.getBorderColor().b},
borderWidth: this.shape.getBorderWidth(),
color: {r: this.shape.getFill().r, g: this.shape.getFill().g, b: this.shape.getFill().b},
titleColor: {r: this.filterTitleColor().r, g: this.filterTitleColor().g, b: this.filterTitleColor().b},
descriptionColor: {r: this.filterDescriptionColor().r, g: this.filterDescriptionColor().g, b: this.filterDescriptionColor().b},
status: this.get('DropDownList').selectedLineNo,
type: "task",
creationDate: this.dateOfCreation,
doneDate: this.dateOfDone,
estimatedReleaseDate: this.estimatedReleaseDate,
requestedReleaseDate: this.requestedReleaseDate
}
if(this.databaseID!==undefined) {
serializedObject._id = this.databaseID;
}
if(this.databaseRev!==undefined) {
serializedObject._rev = this.databaseRev;
}
return serializedObject;
});