Andreu | efe66eb | 2019-09-21 18:41:49 +0200 | [diff] [blame] | 1 | function change_victim(user) { |
| 2 | $(".victima").fadeOut(400, function() { |
Andreu | 04f79ef | 2019-09-22 18:52:19 +0200 | [diff] [blame] | 3 | $(".victima").load('./ajax/victiminfo.php?userid=' + user.id + " #victim_info"); |
Andreu | efe66eb | 2019-09-21 18:41:49 +0200 | [diff] [blame] | 4 | $(".victima").fadeIn(400); |
| 5 | }); |
| 6 | } |
Andreu | 543e70c | 2019-09-22 14:08:49 +0200 | [diff] [blame] | 7 | |
| 8 | function read_message(msg, type) { |
| 9 | $.notify(msg, type); |
| 10 | newURL = window.location.href.split('?')[0]; |
| 11 | history.pushState({}, null, newURL); |
| 12 | } |