Commit 7753f2e8 by kevalbhatt

ATLAS-1605 Edit Entity in UI : Update button is not enabled when updating attribute of type date

parent 9e578251
...@@ -167,9 +167,6 @@ define(['require', ...@@ -167,9 +167,6 @@ define(['require',
} }
}); });
if (this.guid) {
this.bindNonRequiredField();
}
this.ui.entityInputData.on('keyup change dp.change', 'input.true,select.true', function(e) { this.ui.entityInputData.on('keyup change dp.change', 'input.true,select.true', function(e) {
if (this.value !== "") { if (this.value !== "") {
if ($(this).data('select2')) { if ($(this).data('select2')) {
...@@ -200,7 +197,7 @@ define(['require', ...@@ -200,7 +197,7 @@ define(['require',
}, },
bindNonRequiredField: function() { bindNonRequiredField: function() {
var that = this; var that = this;
this.ui.entityInputData.off('keyup change', 'input.false,select.false').on('keyup change', 'input.false,select.false', function(e) { this.ui.entityInputData.off('keyup change dp.change', 'input.false,select.false').on('keyup change dp.change', 'input.false,select.false', function(e) {
if (that.modal.$el.find('button.ok').prop('disabled') && that.ui.entityInputData.find('.errorClass').length === 0) { if (that.modal.$el.find('button.ok').prop('disabled') && that.ui.entityInputData.find('.errorClass').length === 0) {
that.modal.$el.find('button.ok').prop("disabled", false); that.modal.$el.find('button.ok').prop("disabled", false);
} }
...@@ -350,11 +347,14 @@ define(['require', ...@@ -350,11 +347,14 @@ define(['require',
}); });
} }
}); });
if (this.guid) {
this.bindNonRequiredField();
}
this.initializeValidation(); this.initializeValidation();
if (this.ui.entityInputData.find('fieldset').length > 0 && this.ui.entityInputData.find('select.true,input.true').length === 0) { if (this.ui.entityInputData.find('fieldset').length > 0 && this.ui.entityInputData.find('select.true,input.true').length === 0) {
this.requiredAllToggle(this.ui.entityInputData.find('select.true,input.true').length === 0); this.requiredAllToggle(this.ui.entityInputData.find('select.true,input.true').length === 0);
if (!this.guid) { if (!this.guid) {
// For create entity bind keyup for non-required field when all elements are optional
this.bindNonRequiredField(); this.bindNonRequiredField();
} }
this.ui.toggleRequired.prop('checked', true); this.ui.toggleRequired.prop('checked', true);
...@@ -405,6 +405,10 @@ define(['require', ...@@ -405,6 +405,10 @@ define(['require',
this.$('input[data-type="long"],input[data-type="int"]').on('keyup click', function(e) { this.$('input[data-type="long"],input[data-type="int"]').on('keyup click', function(e) {
removeText(e, e.currentTarget.value); removeText(e, e.currentTarget.value);
}); });
this.$('input[data-type="date"]').on('dp.hide', function() {
this.blur();
});
}, },
getContainer: function(value) { getContainer: function(value) {
var entityLabel = this.capitalize(value.name); var entityLabel = this.capitalize(value.name);
......
...@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al ...@@ -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) ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES: ALL CHANGES:
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) ATLAS-1595:Create Entity in UI : All attributes are not listed for hdfs_path. (Kalyanikashikar via kevalbhatt)
ATLAS-1618: updated export to support scope option - full/connected ATLAS-1618: updated export to support scope option - full/connected
ATLAS-1621: fixed webapp integration tests failures ATLAS-1621: fixed webapp integration tests failures
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment