You should be able to do this by overriding the Dataface.Calendar.Event.prototype.getDescription function.
e.g.
Create a javascript file "calendar-override.js":
- Code: Select all
jQuery(document).ready(function($){
Dataface.Calendar.Event.prototype.getDescription = function(){
window.location.href=DATAFACE_SITE_HREF+'?-action=edit&-recordid='+encodeURIComponent(this.record_id);
};
});
Then Add appropriate javascript files to the head of the document by adding the following to your application delegate class:
- Code: Select all
function beforeHandleRequest(){
$app = Dataface_Application::getInstance();
$query =& $app->getQuery();
if ( $query['-action'] == 'calendar' ){
$app->addHeadContent('<script src="'.DATAFACE_URL.'/js/jquery.packed.js"></script>');
$app->addHeadContent('<script src="'.DATAFACE_SITE_URL.'/calendar-override.js"></script>');
}
}
(Note this snippet hasn't been tested so undoubtedly contains a few bugs... but this is the right idea).
-Steve