mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-55835 js: fix lint issues
Some caused by eslint checks being better, some just not detected because we don't show warnings well (MDL-54930).
This commit is contained in:
parent
00c714f05c
commit
e4edbce35d
@ -77,8 +77,8 @@ define(['jquery', 'core/modal_events', 'core/modal', 'core/modal_save_cancel', '
|
||||
*/
|
||||
var createFromElement = function(type, modalElement, triggerElement) {
|
||||
modalElement = $(modalElement);
|
||||
var className = CLASSES[type];
|
||||
var modal = new className(modalElement);
|
||||
var ClassName = CLASSES[type];
|
||||
var modal = new ClassName(modalElement);
|
||||
setUpTrigger(modal, triggerElement);
|
||||
|
||||
return modal;
|
||||
|
@ -72,7 +72,7 @@ define(
|
||||
dialogue.show();
|
||||
|
||||
// On hide handler.
|
||||
modal.getRoot().on(ModalEvents.hidden, function () {
|
||||
modal.getRoot().on(ModalEvents.hidden, function() {
|
||||
// Empty modal contents when it's hidden.
|
||||
modal.setBody('');
|
||||
|
||||
|
2
theme/boost/amd/build/loader.min.js
vendored
2
theme/boost/amd/build/loader.min.js
vendored
@ -1 +1 @@
|
||||
define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(b){a('[data-toggle="popover"]').popover()}),{}});
|
||||
define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(){a('[data-toggle="popover"]').popover()}),{}});
|
@ -39,7 +39,7 @@ define(['jquery', './tether'], function(jQuery, Tether) {
|
||||
'theme_boost/tab',
|
||||
'theme_boost/tooltip',
|
||||
'theme_boost/popover'],
|
||||
function(another) {
|
||||
function() {
|
||||
jQuery('[data-toggle="popover"]').popover();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user