From d0823023306069e6090cc3f08aecb51e95fb26ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Mon, 2 Mar 2009 08:05:50 +0000
Subject: [PATCH] Add jquery def for including jquery files

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1352 44740490-163a-0410-bde0-09ae8108e29a
---
 templates/frontpage.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/templates/frontpage.php b/templates/frontpage.php
index 02b940213..74cde8b6a 100644
--- a/templates/frontpage.php
+++ b/templates/frontpage.php
@@ -2,11 +2,13 @@
 #	$this->data['icon'] = 'compass_l.png';
 
 	
-$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" 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('core' => TRUE, 'ui' => TRUE, 'css' => TRUE);
+
+$this->data['head'] = '<script type="text/javascript">
 
 $(document).ready(function() {
 	$("#tabdiv > ul").tabs();
-- 
GitLab