Skip to content
Snippets Groups Projects
Commit 011b8666 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Replace hardcoded jQuery url with proper template parameter and upgrade to jQuery UI 1.6.

parent d9dc7c0f
Branches
Tags
No related merge requests found
<?php
$this->data['head'] = '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/jquery.js"></script>';
$this->data['head'] .= '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/jquery-ui.js"></script>';
$this->data['head'] .= '<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->data['baseurlpath'] . 'resources/uitheme/jquery-ui-themeroller.css" />';
$this->data['head'] .= '<script type="text/javascript">
$this->data['jquery'] = array('version' => '1.6', 'core' => TRUE, 'ui' => TRUE, 'css' => TRUE);
$this->data['head'] = '<script type="text/javascript">
$(document).ready(function() {
$("#tabdiv > ul").tabs({ selected: ' . $this->data['activeTab'] . ' });
$("#tabdiv").tabs({ selected: ' . $this->data['activeTab'] . ' });
});
</script>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment