mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-59761 eslint: Auto-fix some minor lint warnings
This commit is contained in:
parent
6f601313f0
commit
d9dff92fef
@ -229,7 +229,7 @@ define(['jquery',
|
||||
notification.confirm(
|
||||
strings[0], // Confirm.
|
||||
strings[1], // Reopen plan X?
|
||||
strings[2], // reopen.
|
||||
strings[2], // Reopen.
|
||||
strings[3], // Cancel.
|
||||
function() {
|
||||
self._doReopenPlan(planData);
|
||||
|
@ -369,7 +369,7 @@ define(['jquery', 'core/notification', 'core/templates',
|
||||
// Render the events.
|
||||
return render(root, calendarEvents).then(function(renderCount) {
|
||||
if (renderCount < calendarEvents.length) {
|
||||
// if the number of events that was rendered is less than
|
||||
// If the number of events that was rendered is less than
|
||||
// the number we sent for rendering we can assume that there
|
||||
// are no groups to add them in. Since the ordering of the
|
||||
// events is guaranteed it means that any future requests will
|
||||
|
@ -206,7 +206,8 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
|
||||
*/
|
||||
var findNextFocusable = function(mainElement) {
|
||||
var tabables = $("a:visible");
|
||||
var isInside = false, foundElement = null;
|
||||
var isInside = false;
|
||||
var foundElement = null;
|
||||
tabables.each(function() {
|
||||
if ($.contains(mainElement[0], this)) {
|
||||
isInside = true;
|
||||
|
@ -438,7 +438,7 @@ define(['core/mustache',
|
||||
treated += content.substring(0, index);
|
||||
content = content.substr(index);
|
||||
strIndex = '';
|
||||
walker = 4; // 4 is the length of '[[_s'.
|
||||
walker = 4; // 4 is the length of '[[_s'.
|
||||
|
||||
// Walk the characters to manually extract the index of the string from the placeholder.
|
||||
char = content.substr(walker, 1);
|
||||
@ -455,7 +455,7 @@ define(['core/mustache',
|
||||
strFinal = '';
|
||||
}
|
||||
treated += strFinal;
|
||||
content = content.substr(6 + strIndex.length); // 6 is the length of the placeholder without the index: '[[_s]]'.
|
||||
content = content.substr(6 + strIndex.length); // 6 is the length of the placeholder without the index: '[[_s]]'.
|
||||
|
||||
// Find the next placeholder.
|
||||
index = content.search(pattern);
|
||||
|
@ -249,7 +249,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/custom_interactio
|
||||
// If the element isn't in the view window.
|
||||
if (relativeTop > container.innerHeight()) {
|
||||
var height = notificationElement.outerHeight();
|
||||
// offset enough to make sure the notification will be in view.
|
||||
// Offset enough to make sure the notification will be in view.
|
||||
height = height * 4;
|
||||
var scrollTo = position.top - height;
|
||||
container.scrollTop(scrollTo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user