fixes
This commit is contained in:
@@ -437,7 +437,7 @@ class TicketController extends Controller
|
|||||||
|
|
||||||
return response()->json(compact('result'));
|
return response()->json(compact('result'));
|
||||||
}
|
}
|
||||||
$result = ['success' => 'Replyed successfully'];
|
$result = ['success' => 'Replied successfully'];
|
||||||
|
|
||||||
return response()->json(compact('result'));
|
return response()->json(compact('result'));
|
||||||
}
|
}
|
||||||
|
@@ -1828,13 +1828,19 @@ if ($thread->title != "") {
|
|||||||
}, 500);
|
}, 500);
|
||||||
},
|
},
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
$("#alert21").show();
|
|
||||||
$('#message-success2').html(json.result.success);
|
setTimeout(function () {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
$("#alert21").show();
|
||||||
// $('html, body').animate({ scrollTop: $("#heading").offset().top }, 500);
|
|
||||||
|
$('#message-success2').html(json.result.success);
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
|
$('html, body').animate({ scrollTop: $("#inboxactions").offset().top }, 500);
|
||||||
},
|
},
|
||||||
error: function(json) {
|
|
||||||
|
error: function(json) {
|
||||||
$("#show3").hide();
|
$("#show3").hide();
|
||||||
$("#t1").show();
|
$("#t1").show();
|
||||||
var res = "";
|
var res = "";
|
||||||
@@ -1846,6 +1852,7 @@ if ($thread->title != "") {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
});
|
});
|
||||||
// Surrender
|
// Surrender
|
||||||
$('#Surrender').on('click', function() {
|
$('#Surrender').on('click', function() {
|
||||||
@@ -2147,7 +2154,7 @@ echo $ticket_data->title;
|
|||||||
// $("#alert21").show();
|
// $("#alert21").show();
|
||||||
// $('#message-success2').html(message);
|
// $('#message-success2').html(message);
|
||||||
$('#replybtn').attr('disabled', false);
|
$('#replybtn').attr('disabled', false);
|
||||||
// setInterval(function(){$("#alert21").hide(); },8000);
|
// setInterval(function(){$("#alert21").hide(); },8000);
|
||||||
} else if (response == 1 || response == 4){
|
} else if (response == 1 || response == 4){
|
||||||
// alert(response);
|
// alert(response);
|
||||||
// var message = "{{Lang::get('lang.access-ticket')}}"+locktime/(60*1000)
|
// var message = "{{Lang::get('lang.access-ticket')}}"+locktime/(60*1000)
|
||||||
|
@@ -138,7 +138,8 @@ class="nav-item active"
|
|||||||
<td class="mailbox-priority"><spam>{{$priority->priority}}</spam></td>
|
<td class="mailbox-priority"><spam>{{$priority->priority}}</spam></td>
|
||||||
|
|
||||||
<td class="mailbox-last-reply" style="color: {!! $rep !!}">{!! $username !!}</td>
|
<td class="mailbox-last-reply" style="color: {!! $rep !!}">{!! $username !!}</td>
|
||||||
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
|
<?php $updated = $title->updated_at ?>
|
||||||
|
<td class="mailbox-last-activity">{!! UTC::usertimezone($updated) !!}</td>
|
||||||
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $ticket->status)->first(); ?>
|
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $ticket->status)->first(); ?>
|
||||||
<td class="mailbox-date">{!! $status->name !!}</td>
|
<td class="mailbox-date">{!! $status->name !!}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@@ -347,6 +347,7 @@ Route::middleware('web')->group(function () {
|
|||||||
|
|
||||||
Route::post('/newticket/post', [Agent\helpdesk\TicketController::class, 'post_newticket'])->name('post.newticket'); /* Post Create New Ticket */
|
Route::post('/newticket/post', [Agent\helpdesk\TicketController::class, 'post_newticket'])->name('post.newticket'); /* Post Create New Ticket */
|
||||||
Route::get('/thread/{id}', [Agent\helpdesk\TicketController::class, 'thread'])->name('ticket.thread'); /* Get Thread by ID */
|
Route::get('/thread/{id}', [Agent\helpdesk\TicketController::class, 'thread'])->name('ticket.thread'); /* Get Thread by ID */
|
||||||
|
Route::get('ticket/tooltip', [Agent\helpdesk\TicketController::class, 'getTooltip'])->name('ticket.tooltip');
|
||||||
|
|
||||||
Route::post('/thread/reply/{id}', [Agent\helpdesk\TicketController::class, 'reply'])->name('ticket.reply'); /* Patch Thread Reply */
|
Route::post('/thread/reply/{id}', [Agent\helpdesk\TicketController::class, 'reply'])->name('ticket.reply'); /* Patch Thread Reply */
|
||||||
Route::patch('/internal/note/{id}', [Agent\helpdesk\TicketController::class, 'InternalNote'])->name('Internal.note'); /* Patch Internal Note */
|
Route::patch('/internal/note/{id}', [Agent\helpdesk\TicketController::class, 'InternalNote'])->name('Internal.note'); /* Patch Internal Note */
|
||||||
|
Reference in New Issue
Block a user