From 365d5c4f6a7c32c9d11ceaf976ff1caac70f9998 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 15 Jan 2013 17:13:22 +0530 Subject: [PATCH] fixes in time field --- public/js/legacy/widgets/form/fields.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/public/js/legacy/widgets/form/fields.js b/public/js/legacy/widgets/form/fields.js index 03a862965d..92b70ca85b 100644 --- a/public/js/legacy/widgets/form/fields.js +++ b/public/js/legacy/widgets/form/fields.js @@ -1164,9 +1164,15 @@ TimeField.prototype.make_input = function() { timeFormat: 'hh:mm:ss', }).get(0); - this.set_input = function(v) { + this.input.set_input = function(v) { $(me.input).val(v); - } + }; + + this.input.onchange = function() { + if(!this.not_in_form) + me.set(me.input.value); + me.run_trigger(); + }; } function DateTimeField() { } DateTimeField.prototype = new DateField();