Only load json2.js if native JSON is not supported
This commit is contained in:
parent
3d665f82d1
commit
b03c7a383f
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user