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 committed by Sam Hemelryk
parent 55dc0eb979
commit 918de7968a
4 changed files with 5 additions and 5 deletions

View file

@ -395,7 +395,7 @@ FloatingHeaders.prototype = {
// Grab references to commonly used Nodes. // Grab references to commonly used Nodes.
this.firstUserCell = Y.one(SELECTORS.USERCELL); this.firstUserCell = Y.one(SELECTORS.USERCELL);
this.container = Y.one(SELECTORS.GRADEPARENT); this.container = Y.one(SELECTORS.GRADEPARENT);
this.firstNonUserCell = Y.one(SELECTORS.USERMAIL).next(); this.firstNonUserCell = Y.one(SELECTORS.GRADECELL);
if (!this.firstUserCell) { if (!this.firstUserCell) {
// No need for floating elements, there are no users. // No need for floating elements, there are no users.

View file

@ -395,7 +395,7 @@ FloatingHeaders.prototype = {
// Grab references to commonly used Nodes. // Grab references to commonly used Nodes.
this.firstUserCell = Y.one(SELECTORS.USERCELL); this.firstUserCell = Y.one(SELECTORS.USERCELL);
this.container = Y.one(SELECTORS.GRADEPARENT); this.container = Y.one(SELECTORS.GRADEPARENT);
this.firstNonUserCell = Y.one(SELECTORS.USERMAIL).next(); this.firstNonUserCell = Y.one(SELECTORS.GRADECELL);
if (!this.firstUserCell) { if (!this.firstUserCell) {
// No need for floating elements, there are no users. // No need for floating elements, there are no users.

View file

@ -252,7 +252,7 @@ FloatingHeaders.prototype = {
// Grab references to commonly used Nodes. // Grab references to commonly used Nodes.
this.firstUserCell = Y.one(SELECTORS.USERCELL); this.firstUserCell = Y.one(SELECTORS.USERCELL);
this.container = Y.one(SELECTORS.GRADEPARENT); this.container = Y.one(SELECTORS.GRADEPARENT);
this.firstNonUserCell = Y.one(SELECTORS.USERMAIL).next(); this.firstNonUserCell = Y.one(SELECTORS.GRADECELL);
if (!this.firstUserCell) { if (!this.firstUserCell) {
// No need for floating elements, there are no users. // No need for floating elements, there are no users.