17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2917 Views |
-
not having prototype.js in Template

10 October 2008 at 9:41pm
Hi
I am using the latest checkout of silverstripe, I've noticed that prototype.js is included automatically into my templates. It is currently interfering with some of my Jquery stuff and it is SO big.. I want to disable it?
How would I go about doing this?
-
Re: not having prototype.js in Template

10 October 2008 at 11:36pm
To block prototype.js from being included you can put
Requirements::block('jsparty/prototype.js');
in your Page_Controller's init function
-
Re: not having prototype.js in Template

11 October 2008 at 2:38am
Thanks for the reply!
Could you explain the reasoning of including it by default?
| 2917 Views | ||
|
Page:
1
|
Go to Top |


