N°5888 - Move resize observer to dedicated events listener method

This commit is contained in:
Molkobain
2023-04-19 19:20:01 +02:00
parent f8c2d4930d
commit 5aaaaec829
2 changed files with 32 additions and 30 deletions

View File

@@ -1399,6 +1399,7 @@ let CombodoModal = {
if (false === this._InstantiateModal(oModalElem, oOptions)) {
return null;
}
this._BindEvents(oModalElem);
return oModalElem;
},
@@ -1425,6 +1426,19 @@ let CombodoModal = {
CombodoJSConsole.Debug('CombodoModal._InstantiateModal not implemented');
return false;
},
/**
* Bind event on the modal
*
* @param oModalElem {Object} The jQuery object representing the modal element
* @returns {boolean}
* @private
* @internal
*/
_BindEvents: function(oModalElem) {
// Meant for overlaoding
CombodoJSConsole.Debug('CombodoModal._BindEvents not implemented');
return false;
},
/**
* Center the modal in the current viewport
*