Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Menu: Move re-order off-canvas.js and script.js
  • Loading branch information
joomlart committed Mar 21, 2013
1 parent b87baf5 commit 8bcc2fc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions source/plg_system_t3/includes/core/template.php
Expand Up @@ -538,6 +538,13 @@ function addHead () {

// As joomla 3.0 bootstrap is buggy, we will not use it
$this->addScript (T3_URL.'/bootstrap/js/bootstrap.js');

// add css/js for off-canvas
if ($this->getParam('navigation_collapse_offcanvas', 1)) {
$this->addCss ('off-canvas', false);
$this->addScript (T3_URL.'/js/off-canvas.js', false);
}

$this->addScript (T3_URL.'/js/script.js');

//menu control script
Expand Down Expand Up @@ -703,11 +710,7 @@ function addExtraAssets(){
}
}

// add css/js for off-canvas
if ($this->getParam('navigation_collapse_offcanvas', 1)) {
$this->addCss ('off-canvas', false);
$this->addScript (T3_URL.'/js/off-canvas.js', false);
}

}

function paramToStyle($style, $paramname = '', $isurl = false){
Expand Down

0 comments on commit 8bcc2fc

Please sign in to comment.