Skip to content

Commit

Permalink
[FIX] global
Browse files Browse the repository at this point in the history
  • Loading branch information
SamBrishes committed Aug 30, 2022
1 parent 2cef6cd commit 484b6cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions reportwidgets/commentslist/partials/_comment.htm
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
type="button"
data-request="onChangeStatus"
data-request-data="comment_id: '<?= $comment->id ?>', status: 'spam'"
data-request-success="(typeof oc === 'undefined'? $.oc : c)['flashMsg']({ type: 'success', 'message': data.status });Object.entries(data.counts).map(([t,c]) => document.querySelector(`[data-counter='${t}']`).innerText=c)"
data-request-error="(typeof oc === 'undefined'? $.oc : c)['flashMsg']({ type: 'error', 'message': data.result })"
data-request-success="(typeof oc === 'undefined'? $.oc : oc)['flashMsg']({ type: 'success', 'message': data.status });Object.entries(data.counts).map(([t,c]) => document.querySelector(`[data-counter='${t}']`).innerText=c)"
data-request-error="(typeof oc === 'undefined'? $.oc : oc)['flashMsg']({ type: 'error', 'message': data.result })"
class="btn btn-sm btn-danger"><?= Lang::get('ratmd.bloghub::lang.frontend.comments.spam') ?></button>
<button
type="button"
data-request="onChangeStatus"
data-request-data="comment_id: '<?= $comment->id ?>', status: 'reject'"
data-request-success="(typeof oc === 'undefined'? $.oc : c)['flashMsg']({ type: 'success', 'message': data.status });Object.entries(data.counts).map(([t,c]) => document.querySelector(`[data-counter='${t}']`).innerText=c)"
data-request-error="(typeof oc === 'undefined'? $.oc : c)['flashMsg']({ type: 'error', 'message': data.result })"
data-request-success="(typeof oc === 'undefined'? $.oc : oc)['flashMsg']({ type: 'success', 'message': data.status });Object.entries(data.counts).map(([t,c]) => document.querySelector(`[data-counter='${t}']`).innerText=c)"
data-request-error="(typeof oc === 'undefined'? $.oc : oc)['flashMsg']({ type: 'error', 'message': data.result })"
class="btn btn-sm btn-secondary"><?= Lang::get('ratmd.bloghub::lang.frontend.comments.reject') ?></button>
<button
type="button"
data-request="onChangeStatus"
data-request-data="comment_id: '<?= $comment->id ?>', status: 'approve'"
data-request-success="(typeof oc === 'undefined'? $.oc : c)['flashMsg']({ type: 'success', 'message': data.status });Object.entries(data.counts).map(([t,c]) => document.querySelector(`[data-counter='${t}']`).innerText=c)"
data-request-error="(typeof oc === 'undefined'? $.oc : c)['flashMsg']({ type: 'error', 'message': data.result })"
data-request-success="(typeof oc === 'undefined'? $.oc : oc)['flashMsg']({ type: 'success', 'message': data.status });Object.entries(data.counts).map(([t,c]) => document.querySelector(`[data-counter='${t}']`).innerText=c)"
data-request-error="(typeof oc === 'undefined'? $.oc : oc)['flashMsg']({ type: 'error', 'message': data.result })"
class="btn btn-sm btn-primary ms-3"><?= Lang::get('ratmd.bloghub::lang.frontend.comments.approve') ?></button>
<?php endif; ?>
</div>
Expand Down

0 comments on commit 484b6cf

Please sign in to comment.