Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove add_javascript() method

  • Loading branch information...
commit 70aa3e0167bada6e47218fbc4a6c9267b614c314 1 parent 5edb8b3
@Trott authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.