Disable chenges for published articles
This commit is contained in:
parent
a5da5dc658
commit
8f8d83cd6b
2 changed files with 55 additions and 5 deletions
|
|
@ -19,6 +19,7 @@
|
|||
var first = actions.querySelector('.button');
|
||||
if (first) actions.insertBefore(describe, first);
|
||||
else actions.appendChild(describe);
|
||||
if (typeof window.updatePublicLockedControls === 'function') window.updatePublicLockedControls(row);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -260,6 +261,10 @@
|
|||
var el = (e.target && e.target.closest && e.target.closest('.describe-button')) || (e.target && e.target.classList && e.target.classList.contains && e.target.classList.contains('describe-button') ? e.target : null);
|
||||
if (!el) return;
|
||||
e.preventDefault();
|
||||
if (el.classList.contains('disabled') || el.getAttribute('aria-disabled') === 'true') return;
|
||||
var row = el.closest ? el.closest('.admin-video-row') : null;
|
||||
if (row && typeof window.updatePublicLockedControls === 'function') window.updatePublicLockedControls(row);
|
||||
if (el.classList.contains('disabled') || el.getAttribute('aria-disabled') === 'true') return;
|
||||
var job = el.dataset.job || '';
|
||||
var articleId = el.dataset.id || '';
|
||||
if (!job && !articleId) return;
|
||||
|
|
|
|||
55
admin.php
55
admin.php
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue