load jquery-ui css and js by default

This commit is contained in:
Evan Prodromou 2011-03-10 10:28:08 -06:00
parent 5c26f36a7c
commit a5daed0aa8
2 changed files with 3 additions and 0 deletions

View File

@ -222,6 +222,8 @@ class Action extends HTMLOutputter // lawsuit
Event::handle('EndShowLaconicaStyles', array($this));
}
$this->cssLink(common_path('js/css/smoothness/jquery-ui.css'));
if (Event::handle('StartShowUAStyles', array($this))) {
$this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
'href="'.Theme::path('css/ie.css', 'base').'?version='.STATUSNET_VERSION.'" /><![endif]');
@ -295,6 +297,7 @@ class Action extends HTMLOutputter // lawsuit
if (Event::handle('StartShowJQueryScripts', array($this))) {
$this->script('jquery.min.js');
$this->script('jquery.form.min.js');
$this->script('jquery-ui.min.js');
$this->script('jquery.cookie.min.js');
$this->inlineScript('if (typeof window.JSON !== "object") { $.getScript("'.common_path('js/json2.min.js').'"); }');
$this->script('jquery.joverlay.min.js');