Permalink
Browse files

Remove add_javascript() method

  • Loading branch information...
1 parent 5edb8b3 commit 70aa3e0167bada6e47218fbc4a6c9267b614c314 @Trott committed Jun 12, 2012
Showing with 1 addition and 6 deletions.
  1. +0 −5 root/assets/lib/decorator/site/head.class.php
  2. +1 −1 root/maps/campus.php
View
5 root/assets/lib/decorator/site/head.class.php
@@ -34,11 +34,6 @@ public function set_title($title)
return $this;
}
-
- public function add_javascript($src)
- {
- return $this->add_inner_tag('script', '', array('src'=>$src));
- }
public function render($raw=false)
{
View
2 root/maps/campus.php
@@ -39,7 +39,7 @@
echo HTML_Decorator::html_start()->render();
echo Site_Decorator::head()
->set_title(Config::get('global', 'title_text') . " | $startLocation Map")
- ->add_javascript('http://maps.google.com/maps/api/js?sensor=false&v=3.5')
+ ->add_inner_tag('script', '', array('src'=>'http://maps.google.com/maps/api/js?sensor=false&v=3.5'))
->render();
echo HTML_Decorator::body_start()->render();
echo Site_Decorator::ucsf_header(HTML_Decorator::tag('a', 'Maps', array('href' => '/maps')))->render();

0 comments on commit 70aa3e0

Please sign in to comment.