MDL-48191 gradebook: fixed floating headers when emails not displayed

This commit is contained in:
Jetha Chan
2014-11-17 10:17:53 +08:00
parent 296b602f2c
commit cfbc7d903f
4 changed files with 4 additions and 4 deletions
@@ -394,7 +394,7 @@ FloatingHeaders.prototype = {
// Grab references to commonly used Nodes.
this.firstUserCell = Y.one(SELECTORS.USERCELL);
this.container = Y.one(SELECTORS.GRADEPARENT);
this.firstNonUserCell = Y.one(SELECTORS.USERMAIL).next();
this.firstNonUserCell = Y.one(SELECTORS.GRADECELL);
if (!this.firstUserCell) {
// No need for floating elements, there are no users.
File diff suppressed because one or more lines are too long
@@ -394,7 +394,7 @@ FloatingHeaders.prototype = {
// Grab references to commonly used Nodes.
this.firstUserCell = Y.one(SELECTORS.USERCELL);
this.container = Y.one(SELECTORS.GRADEPARENT);
this.firstNonUserCell = Y.one(SELECTORS.USERMAIL).next();
this.firstNonUserCell = Y.one(SELECTORS.GRADECELL);
if (!this.firstUserCell) {
// No need for floating elements, there are no users.
@@ -251,7 +251,7 @@ FloatingHeaders.prototype = {
// Grab references to commonly used Nodes.
this.firstUserCell = Y.one(SELECTORS.USERCELL);
this.container = Y.one(SELECTORS.GRADEPARENT);
this.firstNonUserCell = Y.one(SELECTORS.USERMAIL).next();
this.firstNonUserCell = Y.one(SELECTORS.GRADECELL);
if (!this.firstUserCell) {
// No need for floating elements, there are no users.