diff --git a/files/assets/js/general16.js b/files/assets/js/general16.js index e611d08f5..0d1edae57 100644 --- a/files/assets/js/general16.js +++ b/files/assets/js/general16.js @@ -311,7 +311,7 @@ function post(url, callback, errortext) { xhr.send(form); }; -function post_toast(url, reload, data) { +function post_toast(url, reload, callback, data) { var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); var form = new FormData() @@ -337,6 +337,10 @@ function post_toast(url, reload, data) { } if (reload == 1) {window.location.reload(true)} + else { + try {callback(xhr)} + catch(e) {} + } return true } else if (xhr.status >= 300 && xhr.status < 400) { diff --git a/files/templates/header.html b/files/templates/header.html index 6955dd13b..882581002 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -130,7 +130,7 @@
This user has enabled private mode to cloak their posting history.
{% if u.id == 253 and 'rdrama' in request.host %} {% if v and v.coins > 500 and not v.is_suspended %} - Pay rent to view profile (500 coins) + Pay rent to view profile (500 coins) {% endif %} {% if v and v.coins > 5000 and time - v.created_utc > 604800 and not v.is_suspended %} - Attempt to steal coins + Attempt to steal coins