Commit 74dc605d by Abhishek Kadam Committed by Madhan Neethiraj

ATLAS-2767: UI : "Create" button is not enabled after an error while createing a classification

parent 25bae4fe
......@@ -65,9 +65,13 @@ define(['require',
});
},
onCloseButton: function() {
var tagName = this.parentView.$el.find('[data-id="tagName"]').val();
if (this.parentView.collection.models.length > 0) {
this.model.destroy();
}
if (this.parentView.collection.models.length == 0 && tagName != "") {
this.parentView.$el.parent().next().find('button.ok').removeAttr("disabled");
}
}
});
});
\ No newline at end of file
......@@ -209,7 +209,7 @@ define(['require',
var tagParents = '',
tagLists = '';
if (this.collection && this.collection.fullCollection.length) {
if (this.collection && this.collection.fullCollection.length >= 0) {
var sortedCollection = this.collection.fullCollection;
this.tagTreeList = this.getTagTreeList({ collection: sortedCollection });
if (searchString) {
......
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