| @@ -209,10 +209,10 @@ | ||
| 209 | 209 | |
| 210 | 210 | $loaded = 1; |
| 211 | 211 | |
| 212 | 212 | JFactory::getDocument()->addScriptDeclaration( |
| 213 | -<<<JS | |
| 214 | -jQuery(document).ready(function() { | |
| 213 | +<<<JAVASCRIPT | |
| 214 | +jQuery(function() { | |
| 215 | 215 | jQuery('.wrap a.modal[target="_blank"]').on('click', function(e) { |
| 216 | 216 | // get link HREF |
| 217 | 217 | var href = jQuery(this).attr('href'); |
| 218 | 218 | |
| @@ -229,9 +229,9 @@ | ||
| 229 | 229 | |
| 230 | 230 | // otherwise fallback to default browser opening |
| 231 | 231 | }); |
| 232 | 232 | }); |
| 233 | -JS | |
| 233 | +JAVASCRIPT | |
| 234 | 234 | ); |
| 235 | 235 | |
| 236 | 236 | // display modal to preview the images |
| 237 | 237 | echo JHtml::fetch( |