[IMP]planner_crm: removed js code from and create a function prepare_planner_event() in the plannerDialog. Then, in planner_crm.js, override that method, and bind the event, if application == 'planner_crm'.