mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-59382 javascript: fix large styling for modals
This commit is contained in:
parent
74eedb28b3
commit
4defa05fdc
2
lib/amd/build/modal.min.js
vendored
2
lib/amd/build/modal.min.js
vendored
File diff suppressed because one or more lines are too long
@ -315,7 +315,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
|
||||
return;
|
||||
}
|
||||
|
||||
this.getRoot().addClass('large');
|
||||
this.getModal().addClass('modal-lg');
|
||||
};
|
||||
|
||||
/**
|
||||
@ -325,7 +325,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
|
||||
* @return {bool}
|
||||
*/
|
||||
Modal.prototype.isLarge = function() {
|
||||
return this.getRoot().hasClass('large');
|
||||
return this.getModal().hasClass('modal-lg');
|
||||
};
|
||||
|
||||
/**
|
||||
@ -338,7 +338,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
|
||||
return;
|
||||
}
|
||||
|
||||
this.getRoot().removeClass('large');
|
||||
this.getModal().removeClass('modal-lg');
|
||||
};
|
||||
|
||||
/**
|
||||
@ -348,7 +348,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
|
||||
* @return {bool}
|
||||
*/
|
||||
Modal.prototype.isSmall = function() {
|
||||
return !this.getRoot().hasClass('large');
|
||||
return !this.getModal().hasClass('modal-lg');
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user