mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 03:41:53 +02:00
Add tooltip to datepicker Today button
This commit is contained in:
parent
bbe2c93542
commit
238e67ed92
@ -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
|
// Avoid collision of datepicker dialog with input field
|
||||||
|
var widget = this;
|
||||||
this.input_date.datepicker('option', 'beforeShow', function(input, inst){
|
this.input_date.datepicker('option', 'beforeShow', function(input, inst){
|
||||||
var cal = inst.dpDiv;
|
var cal = inst.dpDiv;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@ -166,6 +167,10 @@ String: A string in the user\'s date format, or a relative date. Relative dates
|
|||||||
of: input
|
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);
|
},0);
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user