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