Skip to content

Commit

Permalink
Form Element Date: bugfix, show previously set data formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
plepe committed Mar 31, 2017
1 parent 2e2ac21 commit fb24b52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/form_element_date.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ form_element_date.prototype.connect=function(dom_parent) {
this.activate_calendar(this.dom_element);
}

form_element_date.prototype.show_element = function() {
var div = this.parent("form_element_date").show_element.call(this)

this.update_data(this.data)

return div
}

form_element_date.prototype.activate_calendar=function(input) {
input.onfocus=function() {
if(typeof this.calendar=="undefined")
Expand Down

0 comments on commit fb24b52

Please sign in to comment.