| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @package VikWP - Libraries |
| 4 | 4 | * @subpackage adapter.html |
| 5 | 5 | * @author E4J s.r.l. |
| 6 | - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. | |
| 6 | + * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved. | |
| 7 | 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | 8 | * @link https://vikwp.com |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -170,13 +170,13 @@ | ||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | $data = $params ? json_encode($params) : '{}'; |
| 173 | 173 | JFactory::getDocument()->addScriptDeclaration( |
| 174 | -<<<JS | |
| 175 | -jQuery(document).ready(function() { | |
| 174 | +<<<JAVASCRIPT | |
| 175 | +jQuery(function() { | |
| 176 | 176 | jQuery('$selector').popover($data); |
| 177 | 177 | }); |
| 178 | -JS | |
| 178 | +JAVASCRIPT | |
| 179 | 179 | ); |
| 180 | 180 | |
| 181 | 181 | // set static array |
| 182 | 182 | static::$loaded[__METHOD__][$sign] = true; |
| @@ -227,13 +227,13 @@ | ||
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | $data = $params ? json_encode($params) : '{}'; |
| 230 | 230 | JFactory::getDocument()->addScriptDeclaration( |
| 231 | -<<<JS | |
| 232 | -jQuery(document).ready(function() { | |
| 231 | +<<<JAVASCRIPT | |
| 232 | +jQuery(function() { | |
| 233 | 233 | jQuery('$selector').tooltip($data); |
| 234 | 234 | }); |
| 235 | -JS | |
| 235 | +JAVASCRIPT | |
| 236 | 236 | ); |
| 237 | 237 | |
| 238 | 238 | // set static array |
| 239 | 239 | static::$loaded[__METHOD__][$sign] = true; |