+/**
+ * Prompts the user for their consent before displaying external media.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2020 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @module WoltLabSuite/Core/Ui/Message/UserConsent
+ */
define(['Ajax', 'Core', 'User', 'Dom/ChangeListener', 'Dom/Util'], function (Ajax, Core, User, DomChangeListener, DomUtil) {
var _enableAll = false;
var _knownButtons = (typeof window.WeakSet === 'function') ? new window.WeakSet() : new window.Set();
}
},
+ /**
+ * @param {Event} event
+ */
_click: function (event) {
event.preventDefault();
}
},
+ /**
+ * @param {Element} container
+ */
_enableExternalMedia: function (container) {
var payload = atob(elData(container, 'payload'));
if (!$regex->match($url)) continue;
if ($this->getCallback() !== null) {
- return $this->getOutputForUserConsent($url, $this->getCallback()->parse($url, $regex->getMatches()) );
+ return $this->getOutputForUserConsent($url, $this->getCallback()->parse($url, $regex->getMatches()));
}
else {
$output = $this->html;