mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
form for dashboard
This commit is contained in:
@@ -41,19 +41,22 @@ class CollectionEntryElement extends HTMLElement {
|
||||
*/
|
||||
updateButtonStates() {
|
||||
|
||||
if(this.previousElementSibling === null) {
|
||||
this.#eBtnMoveUp.setAttribute('disabled', 'disabled');
|
||||
}
|
||||
else{
|
||||
this.#eBtnMoveUp.removeAttribute('disabled');
|
||||
if (this.dataset.allowOrdering) {
|
||||
|
||||
if (this.previousElementSibling === null) {
|
||||
this.#eBtnMoveUp.setAttribute('disabled', 'disabled');
|
||||
} else {
|
||||
this.#eBtnMoveUp.removeAttribute('disabled');
|
||||
}
|
||||
|
||||
if (this.nextElementSibling === null) {
|
||||
this.#eBtnMoveDown.setAttribute('disabled', 'disabled');
|
||||
} else {
|
||||
this.#eBtnMoveDown.removeAttribute('disabled');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(this.nextElementSibling === null) {
|
||||
this.#eBtnMoveDown.setAttribute('disabled', 'disabled');
|
||||
}
|
||||
else{
|
||||
this.#eBtnMoveDown.removeAttribute('disabled');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user