mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Merge branch 'mdl-82784_main_wip' of https://github.com/james-cnz/moodle
This commit is contained in:
commit
2236a2f449
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -778,10 +778,12 @@ export default class extends BaseComponent {
|
||||
}
|
||||
});
|
||||
const courseAddSection = this.getElement(this.selectors.COURSEADDSECTION);
|
||||
const addSection = courseAddSection.querySelector(this.selectors.ADDSECTION);
|
||||
addSection.classList.toggle(this.classes.DISPLAYNONE, locked);
|
||||
const noMoreSections = courseAddSection.querySelector(this.selectors.MAXSECTIONSWARNING);
|
||||
noMoreSections.classList.toggle(this.classes.DISPLAYNONE, !locked);
|
||||
if (courseAddSection) {
|
||||
const addSection = courseAddSection.querySelector(this.selectors.ADDSECTION);
|
||||
addSection.classList.toggle(this.classes.DISPLAYNONE, locked);
|
||||
const noMoreSections = courseAddSection.querySelector(this.selectors.MAXSECTIONSWARNING);
|
||||
noMoreSections.classList.toggle(this.classes.DISPLAYNONE, !locked);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user