Skip to content

Commit

Permalink
Fix (hopefully) for jdate typing in field.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed May 29, 2020
1 parent 7bacf8b commit 0d3f9ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/fabrik_element/jdate/jdate-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions plugins/fabrik_element/jdate/jdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ define(['jquery', 'fab/element'], function (jQuery, FbElement) {
this.update('');
}
else {
this.calSelect();
//this.calSelect();
}
}.bind(this);

Expand Down Expand Up @@ -193,7 +193,10 @@ define(['jquery', 'fab/element'], function (jQuery, FbElement) {
// yes we really can set the none existant 'readonly' property of the
// subelement container
// and get it when checking the validations - cool or what?
this.element.setProperty('readonly', 'readonly');
//this.element.setProperty('readonly', 'readonly');
this.getDateField().setProperty('readonly', 'readonly');

/*
this.element.getElements('.fabrikinput').each(function (f) {
f.addEvent('focus', function (e) {
this._disabledShowCalTime(f, e);
Expand All @@ -202,6 +205,7 @@ define(['jquery', 'fab/element'], function (jQuery, FbElement) {
this._disabledShowCalTime(f, e);
}.bind(this));
}.bind(this));
*/
},

/**
Expand Down

0 comments on commit 0d3f9ab

Please sign in to comment.