From 8482a2d4790976271b7f000998590ee775d68a6b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 25 Oct 2022 11:45:43 +0300 Subject: [PATCH] Don't display error messages when second scheduled rc command fails --- app/assets/javascripts/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 49266f919f..e6bd6b16cb 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -255,17 +255,19 @@ $(document).ready(function () { }; if (object && object.type !== "note") query.select = object.type + object.id; // can't select notes - sendRemoteEditCommand(remoteEditHost + "/load_and_zoom?" + Qs.stringify(query), function () { + sendRemoteEditCommand(remoteEditHost + "/load_and_zoom?" + Qs.stringify(query), true, function () { if (object && object.type === "note") { var noteQuery = { url: osmHost + OSM.apiUrl(object) }; - sendRemoteEditCommand(remoteEditHost + "/import?" + Qs.stringify(noteQuery)); + sendRemoteEditCommand(remoteEditHost + "/import?" + Qs.stringify(noteQuery), false); } }); - function sendRemoteEditCommand(url, callback) { + function sendRemoteEditCommand(url, displayError, callback) { var iframe = $("