mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Fix inline script usage and duplicate notification
This commit is contained in:
@@ -143,6 +143,18 @@ function initEventDelegation() {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
// Handle confirmation modal close button
|
||||
if (e.target.hasAttribute('data-close-confirmation-modal') || e.target.closest('[data-close-confirmation-modal]')) {
|
||||
e.preventDefault();
|
||||
closeConfirmationModal();
|
||||
}
|
||||
|
||||
// Handle confirmation modal confirm button
|
||||
if (e.target.hasAttribute('data-confirm-confirmation-modal') || e.target.closest('[data-confirm-confirmation-modal]')) {
|
||||
e.preventDefault();
|
||||
confirmConfirmationModal();
|
||||
}
|
||||
|
||||
// Handle admin groups management actions
|
||||
const actionTarget = e.target.closest('[data-action]');
|
||||
if (actionTarget) {
|
||||
|
||||
@@ -90,22 +90,6 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Success/Error Messages -->
|
||||
@if(session('success'))
|
||||
<div class="mx-6 mt-4 p-4 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg">
|
||||
<p class="text-green-800 dark:text-green-300">
|
||||
<i class="fa fa-check-circle mr-2"></i>{{ session('success') }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(session('error'))
|
||||
<div class="mx-6 mt-4 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg">
|
||||
<p class="text-red-800 dark:text-red-300">
|
||||
<i class="fa fa-exclamation-circle mr-2"></i>{{ session('error') }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Validation Error Messages (for bulk actions) -->
|
||||
<div id="validationError" class="mx-6 mt-4 p-4 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg hidden">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<i class="fas fa-exclamation-circle text-blue-600 dark:text-blue-400 mr-2" id="confirmationModalIcon"></i>
|
||||
<span id="confirmationModalTitleText">Confirm Action</span>
|
||||
</h3>
|
||||
<button type="button" onclick="closeConfirmationModal()" class="text-gray-400 hover:text-gray-600 dark:hover:text-gray-300">
|
||||
<button type="button" data-close-confirmation-modal class="text-gray-400 hover:text-gray-600 dark:hover:text-gray-300">
|
||||
<i class="fas fa-times text-xl"></i>
|
||||
</button>
|
||||
</div>
|
||||
@@ -22,12 +22,12 @@
|
||||
</div>
|
||||
<div class="px-6 py-4 bg-gray-50 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700 flex justify-end space-x-3">
|
||||
<button type="button"
|
||||
onclick="closeConfirmationModal()"
|
||||
data-close-confirmation-modal
|
||||
class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-300 dark:hover:bg-gray-600 transition font-medium">
|
||||
<i class="fas fa-times mr-2"></i><span id="confirmationModalCancelText">Cancel</span>
|
||||
</button>
|
||||
<button type="button"
|
||||
onclick="confirmConfirmationModal()"
|
||||
data-confirm-confirmation-modal
|
||||
id="confirmationModalConfirmBtn"
|
||||
class="px-4 py-2 bg-blue-600 dark:bg-blue-700 text-white rounded-lg hover:bg-blue-700 dark:hover:bg-blue-800 transition font-medium">
|
||||
<i class="fas fa-check mr-2"></i><span id="confirmationModalConfirmText">Confirm</span>
|
||||
|
||||
Reference in New Issue
Block a user