mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Its possible to close "Failed to share post" popup
Resolves #436 i was bored
This commit is contained in:
parent
7800a53eb3
commit
453ce0e7d6
1 changed files with 1 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue