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