mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Add tooltip to datepicker Today button
This commit is contained in:
parent
dc3dd6819d
commit
a2a956005e
@ -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);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user