colonymech / docs / www / colonyscout / internal / jeditable / contributed / jquery.jeditable.ui-datepicker.js @ f59acf11
History | View | Annotate | Download (395 Bytes)
1 |
/* Create an inline datepicker which leverages the
|
---|---|
2 |
jQuery UI datepicker
|
3 |
*/
|
4 |
$.editable.addInputType('datepicker', { |
5 |
element: function(settings, original) { |
6 |
var input = $('<input />'); |
7 |
|
8 |
input.datepicker({ |
9 |
onSelect: function(dateText, inst) { |
10 |
$(this).parents("form").submit(); |
11 |
} |
12 |
}); |
13 |
|
14 |
$(this).append(input); |
15 |
return (input);
|
16 |
} |
17 |
}); |