Skip to content

Commit

Permalink
REPORT-495: Added the onchange function for the DatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMujuziMoses committed Nov 8, 2020
1 parent 9360973 commit 1f48729
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void render(WidgetConfig config, Writer w) throws IOException {
HtmlUtil.renderResource(w, config.getRequest(), "/scripts/calendar/calendar.js");

Object idPrefix = config.getId();
config.setFixedAttribute("onchange", "disableButtons('" + idPrefix + "')");
config.setFixedAttribute("onkeyup", "disableButtons('" + idPrefix + "')");
config.setFixedAttribute("size", "10");
config.setFixedAttribute("onClick", "showCalendar(this);");
Expand Down

0 comments on commit 1f48729

Please sign in to comment.