fix: coquille sur le typeof de charger_require
This commit is contained in:
parent
bb6b31d9b7
commit
2d810faf27
1 changed files with 38 additions and 38 deletions
|
@ -17,14 +17,14 @@ jQuery(function () {
|
||||||
let data = {};
|
let data = {};
|
||||||
let minHeight = $(this).data('minheight');
|
let minHeight = $(this).data('minheight');
|
||||||
let minWidth = $(this).data('minwidth');
|
let minWidth = $(this).data('minwidth');
|
||||||
if (minHeight !== undefined) {
|
if (minHeight !== 'undefined') {
|
||||||
data.minHeight = minHeight;
|
data.minHeight = minHeight;
|
||||||
}
|
}
|
||||||
if (minWidth !== undefined) {
|
if (minWidth !== 'undefined') {
|
||||||
data.minWidth = minWidth;
|
data.minWidth = minWidth;
|
||||||
}
|
}
|
||||||
let width = $(this).data('width');
|
let width = $(this).data('width');
|
||||||
if (width !== undefined) {
|
if (width !== 'undefined') {
|
||||||
data.width = width;
|
data.width = width;
|
||||||
let valeur_reduite = ($(window).width() * width) / 100;
|
let valeur_reduite = ($(window).width() * width) / 100;
|
||||||
url += '&largeur=' + valeur_reduite + 'px';
|
url += '&largeur=' + valeur_reduite + 'px';
|
||||||
|
@ -32,7 +32,7 @@ jQuery(function () {
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
data.onShow = () => {
|
data.onShow = () => {
|
||||||
if (typeof charger_require !== undefined) {
|
if (typeof charger_require !== 'undefined') {
|
||||||
charger_require();
|
charger_require();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue