Only load json2.js if native JSON is not supported

This commit is contained in:
Sarven Capadisli 2010-02-19 13:03:26 +01:00
parent 3d665f82d1
commit b03c7a383f

View File

@ -249,7 +249,7 @@ class Action extends HTMLOutputter // lawsuit
$this->script('jquery.min.js');
$this->script('jquery.form.js');
$this->script('jquery.cookie.js');
$this->script('json2.js');
$this->inlineScript('if (typeof window.JSON !== "object") { $.getScript("'.common_path('js/json2.js').'"); }');
$this->script('jquery.joverlay.min.js');
Event::handle('EndShowJQueryScripts', array($this));
}