Commit 88820e1f authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

410: Convert to Spring Boot library and application (OPENED)

Task-Url: search#410
parent ad0fe0a5
This diff is collapsed.
This diff is collapsed.
......@@ -196,7 +196,7 @@ CollectionsEditor.prototype.triggerColRegSync = function () {
bootbox.confirm(__translator.translate("~eu.dariah.de.minfba.search.view.collection.confirm_resync_colreg"), function(result) {
if(result) {
$.ajax({
url: window.location.pathname + "/async/triggerColregSync",
url: __util.composeRelativeUrl("async/triggerColregSync"),
type: "GET",
dataType: "json",
success: function(data) {
......
......@@ -200,7 +200,7 @@ DatamodelEditor.prototype.triggerClearIndex = function (id) {
bootbox.confirm(__translator.translate("~eu.dariah.de.minfba.search.view.datamodels.confirm_clear_index"), function(result) {
if(result) {
$.ajax({
url: window.location.pathname + "/async/triggerClear",
url: __util.composeRelativeUrl("async/triggerClear"),
data: { datamodelId: id },
type: "GET",
dataType: "json",
......@@ -211,8 +211,8 @@ DatamodelEditor.prototype.triggerClearIndex = function (id) {
},
error: function(textStatus) {
__notifications.showTranslatedMessage(NOTIFICATION_TYPES.ERROR,
"~de.dariah.genericsearch.view.async.servererror.head",
"~de.dariah.genericsearch.view.async.servererror.body");
"~eu.dariah.de.minfba.common.error.servererror.head",
"~eu.dariah.de.minfba.common.error.servererror.body");
}
});
}
......@@ -247,7 +247,7 @@ DatamodelEditor.prototype.triggerSync = function () {
callback: function(result) {
if(result) {
$.ajax({
url: window.location.pathname + "/async/triggerSync",
url: __util.composeRelativeUrl("async/triggerSync"),
type: "GET",
dataType: "json",
success: function(data) {
......
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