Skip to content

Commit

Permalink
Merge branch 'MDL-72789-311' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_311_STABLE
  • Loading branch information
junpataleta committed Dec 3, 2021
2 parents a96887e + 4d08b63 commit 5f28929
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Expand Up @@ -201,7 +201,8 @@ Y.extend(EventFilter, Y.Base, {
// These variables will either be false or true depending on the statement outcome.
var fullEventText = Y.Node.create(this.get('tabledata')[i].fulleventname).get('text'),
eventNameValue = fullEventText.toLowerCase().indexOf(eventNameFilter) >= 0,
componentFilterValue = this.get('tabledata')[i].component.toLowerCase().indexOf(componentFilter) >= 0,
fullComponentText = Y.Node.create(this.get('tabledata')[i].component).get('text'),
componentFilterValue = fullComponentText.toLowerCase() === componentFilter,
eduLevelFilterValue = this.get('tabledata')[i].edulevel.toLowerCase().indexOf(eduLevelFilter) >= 0,
crudFilterValue = this.get('tabledata')[i].crud.toLowerCase().indexOf(crudFilter) >= 0;
// If the name field is empty then add to the filter.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -201,7 +201,8 @@ Y.extend(EventFilter, Y.Base, {
// These variables will either be false or true depending on the statement outcome.
var fullEventText = Y.Node.create(this.get('tabledata')[i].fulleventname).get('text'),
eventNameValue = fullEventText.toLowerCase().indexOf(eventNameFilter) >= 0,
componentFilterValue = this.get('tabledata')[i].component.toLowerCase().indexOf(componentFilter) >= 0,
fullComponentText = Y.Node.create(this.get('tabledata')[i].component).get('text'),
componentFilterValue = fullComponentText.toLowerCase() === componentFilter,
eduLevelFilterValue = this.get('tabledata')[i].edulevel.toLowerCase().indexOf(eduLevelFilter) >= 0,
crudFilterValue = this.get('tabledata')[i].crud.toLowerCase().indexOf(crudFilter) >= 0;
// If the name field is empty then add to the filter.
Expand Down
3 changes: 2 additions & 1 deletion report/eventlist/yui/src/eventfilter/js/eventfilter.js
Expand Up @@ -199,7 +199,8 @@ Y.extend(EventFilter, Y.Base, {
// These variables will either be false or true depending on the statement outcome.
var fullEventText = Y.Node.create(this.get('tabledata')[i].fulleventname).get('text'),
eventNameValue = fullEventText.toLowerCase().indexOf(eventNameFilter) >= 0,
componentFilterValue = this.get('tabledata')[i].component.toLowerCase().indexOf(componentFilter) >= 0,
fullComponentText = Y.Node.create(this.get('tabledata')[i].component).get('text'),
componentFilterValue = fullComponentText.toLowerCase() === componentFilter,
eduLevelFilterValue = this.get('tabledata')[i].edulevel.toLowerCase().indexOf(eduLevelFilter) >= 0,
crudFilterValue = this.get('tabledata')[i].crud.toLowerCase().indexOf(crudFilter) >= 0;
// If the name field is empty then add to the filter.
Expand Down

0 comments on commit 5f28929

Please sign in to comment.