From 4577c4b0020476d6e78d8cb3b7b67cc3d4600a1c Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Tue, 7 Apr 2015 20:23:09 +0200 Subject: [PATCH] Fixed issue #3 - missing events on clearing buttons --- client-side/js/ipub.formDateTime.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client-side/js/ipub.formDateTime.js b/client-side/js/ipub.formDateTime.js index f79a220..651e2e3 100644 --- a/client-side/js/ipub.formDateTime.js +++ b/client-side/js/ipub.formDateTime.js @@ -81,6 +81,14 @@ return false; }); + this.buttons.$dateClear.click(function (event) { + event.preventDefault(); + + that.$dateField.val(''); + + return false; + }); + this.buttons.$timeTrigger.click(function (event) { event.preventDefault(); @@ -90,6 +98,14 @@ return false; }); + this.buttons.$timeClear.click(function (event) { + event.preventDefault(); + + that.$timeField.val(''); + + return false; + }); + return this; },