|
@@ -36,16 +36,14 @@ export default class Overlay{
|
36
|
36
|
/**
|
37
|
37
|
* Constructs the HTML body of the overlay dialog.
|
38
|
38
|
*
|
39
|
|
- * @param isLightOverlay indicates that this will be a light overlay look
|
40
|
|
- * and feel.
|
41
|
39
|
* @private
|
42
|
40
|
*/
|
43
|
|
- _buildOverlayHtml(isLightOverlay) {
|
|
41
|
+ _buildOverlayHtml() {
|
44
|
42
|
|
45
|
43
|
let overlayContent = this._buildOverlayContent();
|
46
|
44
|
|
47
|
|
- let containerClass = isLightOverlay ? "overlay__container-light"
|
48
|
|
- : "overlay__container";
|
|
45
|
+ let containerClass = this.isLightOverlay ? "overlay__container-light"
|
|
46
|
+ : "overlay__container";
|
49
|
47
|
|
50
|
48
|
this.$overlay = $(`
|
51
|
49
|
<div class=${containerClass}>
|
|
@@ -78,7 +76,7 @@ export default class Overlay{
|
78
|
76
|
*/
|
79
|
77
|
show() {
|
80
|
78
|
|
81
|
|
- !this.$overlay && this._buildOverlayHtml(this.isLightOverlay);
|
|
79
|
+ !this.$overlay && this._buildOverlayHtml();
|
82
|
80
|
|
83
|
81
|
if (!this.isVisible()) {
|
84
|
82
|
this.$overlay.appendTo('body');
|