mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-01 13:16:23 +00:00
New date picker
Removed the old popup calendar (Tigra) by an inline version (bootstrap-datepicker). Also revamped the time picker and the dialog boxes to fit the new look.
This commit is contained in:
@@ -264,6 +264,10 @@ this.onAdjustDueTime = function(event) {
|
||||
this.initTimeWidgets = function (widgets) {
|
||||
this.timeWidgets = widgets;
|
||||
|
||||
jQuery(widgets['start']['date']).closest('.date').datepicker({autoclose: true});
|
||||
jQuery(widgets['due']['date']).closest('.date').datepicker({autoclose: true});
|
||||
jQuery('#statusTime_date').closest('.date').datepicker({autoclose: true});
|
||||
|
||||
widgets['start']['date'].observe("change", this.onAdjustDueTime, false);
|
||||
widgets['start']['time'].observe("time:change", this.onAdjustDueTime, false);
|
||||
widgets['start']['time'].addInterface(SOGoTimePickerInterface);
|
||||
@@ -310,10 +314,6 @@ function initializeStatusLine() {
|
||||
}
|
||||
|
||||
function onTaskEditorLoad() {
|
||||
assignCalendar('startTime_date');
|
||||
assignCalendar('dueTime_date');
|
||||
assignCalendar('statusTime_date');
|
||||
|
||||
if (readOnly == false) {
|
||||
var widgets = {'start': {'date': $("startTime_date"),
|
||||
'time': $("startTime_time")},
|
||||
|
||||
Reference in New Issue
Block a user