2
0
forked from Wavyzz/dolibarr

Fix: rename "area" to "textarea"

New: add js files for default datepicker options
New: add edit_datepicker for edit in place (not stable)
This commit is contained in:
Regis Houssin
2011-10-28 16:28:55 +02:00
parent c4cf4f0819
commit 4ebbc0de6f
12 changed files with 105 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
/* 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);
}
});