dojo.require("dijit.layout.ContentPane");
_THIS_.addEventListener("fragment.load", "_THIS_init");
_THIS_.addEventListener("fragment.retrieve.after", "_THIS_retrieveAfter");
// enable logging?
_F_config.enableLog = false;
function _THIS_init(evt) {
//write the task description
_THIS_renderDescription();
}
function _THIS_renderDescription() {
var description = '';
if (description) {
dojo.addOnLoad(function() {
if (dijit.byId("_THIS_task_email_container")) {
//if it there detroy it. Should really update, but for some reason
//dijit.byId("_THIS_task_email_container").attr('content', 'test')
//does not work.
dijit.byId("_THIS_task_email_container").destroy();
}
new dijit.layout.ContentPane({content: description},"_THIS_task_email_container");
});
}
}
function _THIS_retrieveAfter(evt) {
if (evt.target.id == "_THIS_") {
//get the selected task, JSONify it and raise the event
_THIS_raiseTaskInfo();
}
}