Skip to content

Commit 1f48729

Browse files
REPORT-495: Added the onchange function for the DatePicker
1 parent 9360973 commit 1f48729

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

omod/src/main/java/org/openmrs/module/htmlwidgets/web/html/DateWidget.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public void render(WidgetConfig config, Writer w) throws IOException {
1818
HtmlUtil.renderResource(w, config.getRequest(), "/scripts/calendar/calendar.js");
1919

2020
Object idPrefix = config.getId();
21+
config.setFixedAttribute("onchange", "disableButtons('" + idPrefix + "')");
2122
config.setFixedAttribute("onkeyup", "disableButtons('" + idPrefix + "')");
2223
config.setFixedAttribute("size", "10");
2324
config.setFixedAttribute("onClick", "showCalendar(this);");

0 commit comments

Comments
 (0)