Fixes no selected record element error (#2407)

* fixes no record element error

* made relevant changes

* alert message from i18n instead

* removed the boolean variable
This commit is contained in:
Lisa Chandra 2020-03-14 20:06:54 +05:30 committed by GitHub
parent 14ef45efb2
commit fd2460914c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,7 @@ Refine.XmlParserUI.prototype._initialize = function() {
this._optionContainerElmts.includeFileSourcesCheckbox.prop("checked", true);
}
this._optionContainerElmts.pickRecordElementsButton.click(function() {
self._config.recordPath = undefined;
self._showPickRecordElementsUI();
});
@ -257,6 +258,11 @@ Refine.XmlParserUI.prototype._setRecordPath = function(path) {
Refine.XmlParserUI.prototype._updatePreview = function() {
var self = this;
if(!this._config.recordPath){
window.alert($.i18n('core-index-import/warning-record-path'));
return;
}
this._progressContainer.show();