mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-46951 gradereport_grader: Disable floating behaviour when table is empty
This issue is a part of the MDL-46658 Task. This issue is a part of the MDL-25544 Epic.
This commit is contained in:
parent
f79776cb7f
commit
b6ad809581
@ -436,6 +436,11 @@ FloatingHeaders.prototype = {
|
||||
this.firstUserCell = Y.one(SELECTORS.USERCELL);
|
||||
this.container = Y.one(SELECTORS.GRADEPARENT);
|
||||
|
||||
if (!this.firstUserCell) {
|
||||
// No need for floating elements, there are no users.
|
||||
return this;
|
||||
}
|
||||
|
||||
// Generate floating elements.
|
||||
this._setupFloatingUserColumn();
|
||||
this._setupFloatingUserHeader();
|
||||
|
File diff suppressed because one or more lines are too long
@ -436,6 +436,11 @@ FloatingHeaders.prototype = {
|
||||
this.firstUserCell = Y.one(SELECTORS.USERCELL);
|
||||
this.container = Y.one(SELECTORS.GRADEPARENT);
|
||||
|
||||
if (!this.firstUserCell) {
|
||||
// No need for floating elements, there are no users.
|
||||
return this;
|
||||
}
|
||||
|
||||
// Generate floating elements.
|
||||
this._setupFloatingUserColumn();
|
||||
this._setupFloatingUserHeader();
|
||||
|
@ -188,6 +188,11 @@ FloatingHeaders.prototype = {
|
||||
this.firstUserCell = Y.one(SELECTORS.USERCELL);
|
||||
this.container = Y.one(SELECTORS.GRADEPARENT);
|
||||
|
||||
if (!this.firstUserCell) {
|
||||
// No need for floating elements, there are no users.
|
||||
return this;
|
||||
}
|
||||
|
||||
// Generate floating elements.
|
||||
this._setupFloatingUserColumn();
|
||||
this._setupFloatingUserHeader();
|
||||
|
Loading…
x
Reference in New Issue
Block a user