[FIX] web_calendar: today button should return the date_part only
bzr revid: mat@openerp.com-20130524135520-8853j3kfxlmp2lpm
This commit is contained in:
parent
423052ac68
commit
0e8d719cd1
|
@ -15,6 +15,12 @@
|
||||||
old_scheduler_dblclick.apply(this, arguments);
|
old_scheduler_dblclick.apply(this, arguments);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scheduler._click.dhx_cal_today_button = function() {
|
||||||
|
if (scheduler.callEvent("onBeforeTodayDisplayed", [])) {
|
||||||
|
scheduler.setCurrentView( scheduler.date.date_part(new Date()) );
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue