V15
This commit is contained in:
parent
7aa3b7d910
commit
1a0b8da2ba
@ -1033,6 +1033,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
rulesRoleContainer.style.display = (channelType === 'rules') ? 'block' : 'none';
|
rulesRoleContainer.style.display = (channelType === 'rules') ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide limit, files and clear chat for rules
|
||||||
|
const editLimitContainer = document.getElementById('edit-channel-limit-container');
|
||||||
|
const editFilesContainer = document.getElementById('edit-channel-files-container');
|
||||||
|
const clearChatBtn = document.getElementById('clear-channel-history-btn');
|
||||||
|
|
||||||
|
if (editLimitContainer) editLimitContainer.style.display = (channelType === 'rules') ? 'none' : 'block';
|
||||||
|
if (editFilesContainer) editFilesContainer.style.display = (channelType === 'rules') ? 'none' : 'block';
|
||||||
|
if (clearChatBtn) clearChatBtn.style.display = (channelType === 'rules') ? 'none' : 'inline-block';
|
||||||
|
|
||||||
// Reset delete zone
|
// Reset delete zone
|
||||||
document.getElementById('delete-confirm-zone').style.display = 'none';
|
document.getElementById('delete-confirm-zone').style.display = 'none';
|
||||||
|
|
||||||
@ -1072,6 +1081,20 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
rssTabNav.style.display = (type === 'announcement') ? 'block' : 'none';
|
rssTabNav.style.display = (type === 'announcement') ? 'block' : 'none';
|
||||||
statusContainer.style.display = (type === 'voice') ? 'block' : 'none';
|
statusContainer.style.display = (type === 'voice') ? 'block' : 'none';
|
||||||
|
|
||||||
|
// Rules specific visibility
|
||||||
|
const rulesRoleContainer = document.getElementById('edit-channel-rules-role-container');
|
||||||
|
if (rulesRoleContainer) {
|
||||||
|
rulesRoleContainer.style.display = (type === 'rules') ? 'block' : 'none';
|
||||||
|
}
|
||||||
|
|
||||||
|
const editLimitContainer = document.getElementById('edit-channel-limit-container');
|
||||||
|
const editFilesContainer = document.getElementById('edit-channel-files-container');
|
||||||
|
const clearChatBtn = document.getElementById('clear-channel-history-btn');
|
||||||
|
|
||||||
|
if (editLimitContainer) editLimitContainer.style.display = (type === 'rules') ? 'none' : 'block';
|
||||||
|
if (editFilesContainer) editFilesContainer.style.display = (type === 'rules') ? 'none' : 'block';
|
||||||
|
if (clearChatBtn) clearChatBtn.style.display = (type === 'rules') ? 'none' : 'inline-block';
|
||||||
});
|
});
|
||||||
|
|
||||||
// RSS Management
|
// RSS Management
|
||||||
@ -2031,18 +2054,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
const addChannelTypeSelect = document.getElementById('add-channel-type');
|
const addChannelTypeSelect = document.getElementById('add-channel-type');
|
||||||
addChannelTypeSelect?.addEventListener('change', (e) => {
|
addChannelTypeSelect?.addEventListener('change', (e) => {
|
||||||
|
const type = e.target.value;
|
||||||
const container = document.getElementById('add-channel-rules-role-container');
|
const container = document.getElementById('add-channel-rules-role-container');
|
||||||
if (container) {
|
if (container) {
|
||||||
container.style.display = (e.target.value === 'rules') ? 'block' : 'none';
|
container.style.display = (type === 'rules') ? 'block' : 'none';
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const editChannelTypeSelect = document.getElementById('edit-channel-type');
|
|
||||||
editChannelTypeSelect?.addEventListener('change', (e) => {
|
|
||||||
const container = document.getElementById('edit-channel-rules-role-container');
|
|
||||||
if (container) {
|
|
||||||
container.style.display = (e.target.value === 'rules') ? 'block' : 'none';
|
|
||||||
}
|
}
|
||||||
|
const limitContainer = document.getElementById('add-channel-limit-container');
|
||||||
|
const filesContainer = document.getElementById('add-channel-files-container');
|
||||||
|
if (limitContainer) limitContainer.style.display = (type === 'rules') ? 'none' : 'block';
|
||||||
|
if (filesContainer) filesContainer.style.display = (type === 'rules') ? 'none' : 'block';
|
||||||
});
|
});
|
||||||
|
|
||||||
// User Settings - Avatar Search
|
// User Settings - Avatar Search
|
||||||
|
|||||||
@ -1187,16 +1187,20 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="add-channel-files-container">
|
||||||
<div class="form-check form-switch mb-3">
|
<div class="form-check form-switch mb-3">
|
||||||
<input class="form-check-input" type="checkbox" name="allow_file_sharing" id="add-channel-files" value="1" checked>
|
<input class="form-check-input" type="checkbox" name="allow_file_sharing" id="add-channel-files" value="1" checked>
|
||||||
<label class="form-check-label text-white" for="add-channel-files">Allow File Sharing</label>
|
<label class="form-check-label text-white" for="add-channel-files">Allow File Sharing</label>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="add-channel-limit-container">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label text-uppercase fw-bold" style="font-size: 0.7em; color: var(--text-muted);">Message Limit</label>
|
<label class="form-label text-uppercase fw-bold" style="font-size: 0.7em; color: var(--text-muted);">Message Limit</label>
|
||||||
<input type="number" name="message_limit" class="form-control" placeholder="e.g. 50 (Leave empty for no limit)">
|
<input type="number" name="message_limit" class="form-control" placeholder="e.g. 50 (Leave empty for no limit)">
|
||||||
<div class="form-text text-muted" style="font-size: 0.8em;">Automatically keeps only the last X messages in this channel.</div>
|
<div class="form-text text-muted" style="font-size: 0.8em;">Automatically keeps only the last X messages in this channel.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-link text-white text-decoration-none" data-bs-dismiss="modal">Cancel</button>
|
<button type="button" class="btn btn-link text-white text-decoration-none" data-bs-dismiss="modal">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" style="background-color: var(--blurple); border: none; padding: 10px 24px;">Create Channel</button>
|
<button type="submit" class="btn btn-primary" style="background-color: var(--blurple); border: none; padding: 10px 24px;">Create Channel</button>
|
||||||
@ -1311,17 +1315,21 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|||||||
<input type="text" name="status" id="edit-channel-status" class="form-control bg-dark text-white border-secondary" placeholder="What's happening?">
|
<input type="text" name="status" id="edit-channel-status" class="form-control bg-dark text-white border-secondary" placeholder="What's happening?">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="edit-channel-limit-container">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label text-uppercase fw-bold" style="font-size: 0.7em; color: var(--text-muted);">Message Retention</label>
|
<label class="form-label text-uppercase fw-bold" style="font-size: 0.7em; color: var(--text-muted);">Message Retention</label>
|
||||||
<input type="number" name="message_limit" id="edit-channel-limit" class="form-control bg-dark text-white border-secondary" placeholder="Keep all messages">
|
<input type="number" name="message_limit" id="edit-channel-limit" class="form-control bg-dark text-white border-secondary" placeholder="Keep all messages">
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="edit-channel-files-container">
|
||||||
<div class="form-check form-switch mb-4">
|
<div class="form-check form-switch mb-4">
|
||||||
<input class="form-check-input" type="checkbox" name="allow_file_sharing" id="edit-channel-files" value="1">
|
<input class="form-check-input" type="checkbox" name="allow_file_sharing" id="edit-channel-files" value="1">
|
||||||
<label class="form-check-label text-white" for="edit-channel-files">Allow users to upload files</label>
|
<label class="form-check-label text-white" for="edit-channel-files">Allow users to upload files</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
<button type="submit" class="btn btn-primary flex-grow-1">Save Changes</button>
|
<button type="submit" class="btn btn-primary flex-grow-1">Save Changes</button>
|
||||||
|
|||||||
14
requests.log
14
requests.log
@ -124,3 +124,17 @@
|
|||||||
2026-02-16 00:34:34 - GET /index.php?server_id=1&channel_id=15 - POST: []
|
2026-02-16 00:34:34 - GET /index.php?server_id=1&channel_id=15 - POST: []
|
||||||
2026-02-16 00:34:36 - GET /index.php?server_id=1&channel_id=6 - POST: []
|
2026-02-16 00:34:36 - GET /index.php?server_id=1&channel_id=6 - POST: []
|
||||||
2026-02-16 00:34:39 - GET /index.php?server_id=1&channel_id=1 - POST: []
|
2026-02-16 00:34:39 - GET /index.php?server_id=1&channel_id=1 - POST: []
|
||||||
|
2026-02-16 00:36:39 - GET /index.php?server_id=dms - POST: []
|
||||||
|
2026-02-16 00:36:43 - GET /index.php?server_id=dms&channel_id=7 - POST: []
|
||||||
|
2026-02-16 00:36:46 - GET /index.php?server_id=dms&channel_id=7 - POST: []
|
||||||
|
2026-02-16 00:36:48 - GET /index.php?server_id=1 - POST: []
|
||||||
|
2026-02-16 00:36:56 - GET /index.php?server_id=1 - POST: []
|
||||||
|
2026-02-16 00:37:04 - GET /index.php?server_id=dms - POST: []
|
||||||
|
2026-02-16 00:37:05 - GET /index.php?server_id=1 - POST: []
|
||||||
|
2026-02-16 00:38:00 - GET /index.php?server_id=1&channel_id=15 - POST: []
|
||||||
|
2026-02-16 00:39:58 - GET /index.php?server_id=1 - POST: []
|
||||||
|
2026-02-16 02:38:56 - GET / - POST: []
|
||||||
|
2026-02-16 02:54:58 - GET /?fl_project=38443 - POST: []
|
||||||
|
2026-02-16 02:56:39 - GET /index.php?server_id=1 - POST: []
|
||||||
|
2026-02-16 02:57:05 - GET /index.php?server_id=1 - POST: []
|
||||||
|
2026-02-16 02:57:17 - GET /index.php?server_id=1 - POST: []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user