rem: setSelectedEvent(cosmo.view.cal.lastSent); 
add: dojo.event.topic.publish('/calEvent', { 'action': 'setSelected', 'data': cosmo.view.cal.lastSent }); 
context:     function saveSuccess(cmd) {        var ev = cmd.data;        // Updating existing        if (!cmd.qualifier.newEvent) {            // Changes have placed the saved event off-canvas            if (!cmd.qualifier.onCanvas) {                removeEvent(ev);            }            // Saved event is still in view            else {                ev.setInputDisabled(false);                ev.block.updateDisplayMain();            }        }        // Don't re-render when requests are still processing        if (!cosmo.view.cal.processingQueue.length) {            if (cmd.qualifier.newEvent || cmd.qualifier.onCanvas) {                setSelectedEvent(cosmo.view.cal.lastSent);            }            updateEventsDisplay();        }    }
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/0e69df1442de1ab5fff0f19baec757b66289f4fa/canvas.js/buggy/src/webapp/js/cosmo/view/cal/canvas.js