diff --git a/main/webapp/modules/core/scripts/index/default-importing-sources/import-from-web-form.html b/main/webapp/modules/core/scripts/index/default-importing-sources/import-from-web-form.html index 3de3ee5ad..d4626884c 100644 --- a/main/webapp/modules/core/scripts/index/default-importing-sources/import-from-web-form.html +++ b/main/webapp/modules/core/scripts/index/default-importing-sources/import-from-web-form.html @@ -3,6 +3,6 @@ - + \ No newline at end of file diff --git a/main/webapp/modules/core/scripts/index/default-importing-sources/sources.js b/main/webapp/modules/core/scripts/index/default-importing-sources/sources.js index b625dc2a3..d8f45ab62 100644 --- a/main/webapp/modules/core/scripts/index/default-importing-sources/sources.js +++ b/main/webapp/modules/core/scripts/index/default-importing-sources/sources.js @@ -88,8 +88,9 @@ UrlImportingSourceUI.prototype.attachUI = function(bodyDiv) { $('#or-import-enterurl').text($.i18n('core-index-import/enter-url')); this._elmts.addButton.html($.i18n('core-buttons/add-url')); this._elmts.nextButton.html($.i18n('core-buttons/next')); - - this._elmts.nextButton.click(function(evt) { + + this._elmts.form.submit(function(evt){ + evt.preventDefault(); if(!isUrlValid(self._elmts.urlInput[0].value)) { window.alert($.i18n('core-index-import/warning-web-address')); } else {