JQuery is not loaded while bootstrap is loaded
Posted: 02 May 2016, 05:29
I get an error at a PhocaPhoto page
I belive it's logical to load jquery when loading bootstrap
I file
In the code
Add jquery load
This fixes my problems
P.S. And the same change is needed for the category and item views.
Code: Select all
ReferenceError: jQuery is not defined
http://pyatka.in.uac/media/com_phocaphoto/bootstrap/js/bootstrap.min.js
Line 11
I file
Code: Select all
components/com_phocaphoto/views/categories/view.html.php
Code: Select all
JHTML::stylesheet('media/com_phocaphoto/css/style.css' );
if ($this->t['load_bootstrap'] == 1) {
JHTML::stylesheet('media/com_phocaphoto/bootstrap/css/bootstrap.min.css' );
$document->addScript(JURI::root(true).'/media/com_phocaphoto/bootstrap/js/bootstrap.min.js');
}
Code: Select all
JHTML::stylesheet('media/com_phocaphoto/css/style.css' );
if ($this->t['load_bootstrap'] == 1) {
JHtml::_('jquery.framework');
JHTML::stylesheet('media/com_phocaphoto/bootstrap/css/bootstrap.min.css' );
$document->addScript(JURI::root(true).'/media/com_phocaphoto/bootstrap/js/bootstrap.min.js');
}
P.S. And the same change is needed for the category and item views.