From 453ce0e7d66dba972b9cb09cfb466819f8bbff7d Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Mon, 23 May 2022 16:52:28 +0300 Subject: [PATCH] Its possible to close "Failed to share post" popup Resolves #436 i was bored --- Web/static/js/openvk.cls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/static/js/openvk.cls.js b/Web/static/js/openvk.cls.js index 77677191..668e8ef9 100644 --- a/Web/static/js/openvk.cls.js +++ b/Web/static/js/openvk.cls.js @@ -171,7 +171,7 @@ function repostPost(id, hash) { xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xhr.onload = (function() { if(xhr.responseText.indexOf("wall_owner") === -1) - MessageBox(tr('error'), tr('error_repost_fail'), tr('ok'), [Function.noop]); + MessageBox(tr('error'), tr('error_repost_fail'), [tr('ok')], [Function.noop]); else { let jsonR = JSON.parse(xhr.responseText); NewNotification(tr('information_-1'), tr('shared_succ'), null, () => {window.location.href = "/wall" + jsonR.wall_owner});