I am running Silverstripe 2.4 and i'm having an issue with this :
Behaviour.register({
'#Form_EditForm' : {
initialize : function() {
....
When i click save & publish or save the initialize is running twice... can anybody suggest any possible solution to this problem?
The js is included in a separate file and being included using Requirements::javascriptTemplate and its only being included once...
Any ideas??