Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Oct 6, 2024
1 parent 296b03d commit d2d58b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server-data/resources/[esx_addons]/tickets/nui/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const IR8 = {

// If data action is not provided
if (!e.data.action) {
IR8.debugPrint('Message received, but not action present.');
IR8.debugPrint('Message received, but no action present.');
return false;
}

Expand Down Expand Up @@ -212,7 +212,7 @@ const IR8 = {
setCategories: () => {
if (IR8.state.categories.length) {
$('#category').html('');
IR8.state.categories.forEach((category, index) => {
IR8.state.categories.forEach((category) => {
$('#category').append(`<option value="${category}">${category}</option>`);
});
}
Expand Down Expand Up @@ -257,7 +257,7 @@ const IR8 = {

if (Array.isArray(replies)) {
if (replies.length) {
replies.forEach((reply, index) => {
replies.forEach((reply) => {
$('#replies').append(
`
<div class="card w-100 mt-3">
Expand Down Expand Up @@ -304,7 +304,7 @@ const IR8 = {

buttonTicketStatus.html(res.status);
buttonTicketStatuses.html('');
IR8.state.statuses.forEach((status, index) => {
IR8.state.statuses.forEach((status) => {
buttonTicketStatuses.append(
`<li><a class="dropdown-item" href="javascript:void(0);" onclick="IR8.updateTicketStatus(${res.id}, '${status.label}');">${status.label}</a></li>`,
);
Expand Down Expand Up @@ -539,7 +539,7 @@ IR8.handlers.tickets = (data) => {
`);
}

IR8.state.tickets.forEach((item, key) => {
IR8.state.tickets.forEach((item) => {

const status = item.status.toLowerCase();
let badgeType = 'default';
Expand Down

0 comments on commit d2d58b8

Please sign in to comment.