Add tooltip to datepicker Today button

This commit is contained in:
nathangray 2016-08-02 09:30:20 -06:00
parent dc3dd6819d
commit a2a956005e

View File

@ -150,6 +150,7 @@ String: A string in the user\'s date format, or a relative date. Relative dates
}
// Avoid collision of datepicker dialog with input field
var widget = this;
this.input_date.datepicker('option', 'beforeShow', function(input, inst){
var cal = inst.dpDiv;
setTimeout(function () {
@ -166,6 +167,10 @@ String: A string in the user\'s date format, or a relative date. Relative dates
of: input
});
}
// Add tooltip to Today/Now button
jQuery('[data-handler="today"]',cal).attr('title',
widget._type == 'date' ? egw.lang('Today') : egw.lang('Now')
);
},0);
})