From 011b86661d1a8d3e3b477c87686cf774ab1fab44 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Wed, 10 Dec 2014 15:03:50 +0000 Subject: [PATCH] Replace hardcoded jQuery url with proper template parameter and upgrade to jQuery UI 1.6. --- modules/saml2debug/templates/debug.tpl.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/saml2debug/templates/debug.tpl.php b/modules/saml2debug/templates/debug.tpl.php index cc864f3c8..47849ab35 100644 --- a/modules/saml2debug/templates/debug.tpl.php +++ b/modules/saml2debug/templates/debug.tpl.php @@ -1,13 +1,10 @@ <?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>'; -- GitLab