ATLAS-1628 Restrict user from entering text in datepicker input

This commit is contained in:
kevalbhatt 2017-03-03 19:25:26 +05:30
parent a4b16bbaba
commit b99151fb83
2 changed files with 9 additions and 2 deletions

View File

@ -406,8 +406,14 @@ define(['require',
removeText(e, e.currentTarget.value);
});
this.$('input[data-type="date"]').on('dp.hide', function() {
this.blur();
this.$('input[data-type="date"]').on('dp.hide keydown', function(event) {
if (event.type) {
if (event.type == 'dp') {
this.blur();
} else if (event.type == 'keydown') {
return false;
}
}
});
},
getContainer: function(value) {

View File

@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1628 Restrict user from entering text in datepicker input (kevalbhatt)
ATLAS-1538 Make AtlasLdapAuthenticationProvider like Ranger for OpenLdap type (nixonrodrigues via kevalbhatt)
ATLAS-1605 Edit Entity in UI : Update button is not enabled when updating attribute of type date (Kalyanikashikar via kevalbhatt)
ATLAS-1595:Create Entity in UI : All attributes are not listed for hdfs_path. (Kalyanikashikar via kevalbhatt)