Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Fixed issue #3 - missing events on clearing buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Apr 7, 2015
1 parent 9c2f67e commit 4577c4b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions client-side/js/ipub.formDateTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -90,6 +98,14 @@
return false;
});

this.buttons.$timeClear.click(function (event) {
event.preventDefault();

that.$timeField.val('');

return false;
});

return this;
},

Expand Down

0 comments on commit 4577c4b

Please sign in to comment.