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:
parent
14ef45efb2
commit
fd2460914c
@ -131,6 +131,7 @@ Refine.XmlParserUI.prototype._initialize = function() {
|
|||||||
this._optionContainerElmts.includeFileSourcesCheckbox.prop("checked", true);
|
this._optionContainerElmts.includeFileSourcesCheckbox.prop("checked", true);
|
||||||
}
|
}
|
||||||
this._optionContainerElmts.pickRecordElementsButton.click(function() {
|
this._optionContainerElmts.pickRecordElementsButton.click(function() {
|
||||||
|
self._config.recordPath = undefined;
|
||||||
self._showPickRecordElementsUI();
|
self._showPickRecordElementsUI();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -257,6 +258,11 @@ Refine.XmlParserUI.prototype._setRecordPath = function(path) {
|
|||||||
|
|
||||||
Refine.XmlParserUI.prototype._updatePreview = function() {
|
Refine.XmlParserUI.prototype._updatePreview = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
if(!this._config.recordPath){
|
||||||
|
window.alert($.i18n('core-index-import/warning-record-path'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._progressContainer.show();
|
this._progressContainer.show();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user