move some stuff for live radar for compiled views

add chat icon to send messages to servers on server view
This commit is contained in:
RaidMax
2019-07-13 20:45:25 -05:00
parent b0365a5a43
commit fc43e47874
10 changed files with 105 additions and 38 deletions

View File

@ -32,7 +32,9 @@ $(document).ready(function () {
*/
$('.profile-action').click(function (e) {
const actionType = $(this).data('action');
$.get('/Action/' + actionType + 'Form')
const actionId = $(this).data('action-id');
const actionIdKey = actionId == undefined ? '' : '?id=' + actionId;
$.get('/Action/' + actionType + 'Form' + actionIdKey)
.done(function (response) {
$('#actionModal .modal-message').fadeOut('fast');
$('#actionModal .modal-body-content').html(response);