Development
This commit is contained in:
parent
4d0d525619
commit
ddee2c2389
1 changed files with 15 additions and 0 deletions
|
|
@ -2841,6 +2841,21 @@ document.querySelectorAll('[data-reveal-card]').forEach(function(btn) {
|
|||
});
|
||||
})();
|
||||
|
||||
(function() {
|
||||
var revertForm = document.querySelector('form[action="/action/actions_cardhistory_revertselected"]');
|
||||
if (revertForm) {
|
||||
var revertBtn = revertForm.querySelector('button[type="submit"]');
|
||||
if (revertBtn && !revertBtn.disabled) {
|
||||
function updateRevertBtn() {
|
||||
var any = revertForm.querySelectorAll('input[name="selected_uuids"]:checked:not(:disabled)').length > 0;
|
||||
revertBtn.disabled = !any;
|
||||
}
|
||||
updateRevertBtn();
|
||||
revertForm.addEventListener('change', updateRevertBtn);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
(function() {
|
||||
function uuidHighlight(on) {
|
||||
return function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue