From 55595fa42e2a0633a02208a3f524e5af29d7a878 Mon Sep 17 00:00:00 2001 From: Antoniafriedrich Date: Mon, 14 Oct 2024 12:49:27 +0200 Subject: [PATCH] Fix formating --- .../resources/js/mir/relatedItem-modal.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js b/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js index f68e15c389..c1fd43cd59 100644 --- a/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js +++ b/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js @@ -233,8 +233,7 @@ $(document).ready(function () { }); return process(list); }, "select", "mods.title:*" + query + "*", "0"); - }, - updater: function (item) { + }, updater: function (item) { $("#main_right_content").empty(); sortType = ""; loadPublikation(leftContent, "select", "id:" + item.id, "0"); @@ -244,9 +243,7 @@ $(document).ready(function () { loadPublikation(rightContent, "receive", item.id, ""); activateSendButton(item.id); return item; - }, - items: 10, - autoSelect: false + }, items: 10, autoSelect: false }); $("#modal-searchInput button").unbind().click(function (event) { @@ -303,13 +300,9 @@ $(document).ready(function () { break; } $.ajax({ - url: webApplicationBaseURL + url, - type: "GET", - dataType: dataType, - success: function (data) { + url: webApplicationBaseURL + url, type: "GET", dataType: dataType, success: function (data) { callback(data); - }, - error: function (error) { + }, error: function (error) { console.log("Failed to load " + webApplicationBaseURL + url); console.log(error); } @@ -319,9 +312,7 @@ $(document).ready(function () { function loadGenres(callback) { if (!webApplicationBaseURL) console.log("Error: webApplicationBaseURL not set"); $.ajax({ - method: "GET", - url: webApplicationBaseURL + "api/v1/classifications/mir_genres", - dataType: "xml" + method: "GET", url: webApplicationBaseURL + "api/v1/classifications/mir_genres", dataType: "xml" }).done(function (xml) { GenreXML = xml; callback();