mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
17 lines
No EOL
395 B
JavaScript
17 lines
No EOL
395 B
JavaScript
/* Create an inline datepicker which leverages the
|
|
jQuery UI datepicker
|
|
*/
|
|
$.editable.addInputType('datepicker', {
|
|
element: function(settings, original) {
|
|
var input = $('<input />');
|
|
|
|
input.datepicker({
|
|
onSelect: function(dateText, inst) {
|
|
$(this).parents("form").submit();
|
|
}
|
|
});
|
|
|
|
$(this).append(input);
|
|
return (input);
|
|
}
|
|
}); |