Closed mazzone closed 11 years ago
And now also on line 41.
Is this only ever being called from the services add view? If so:
If it needs including in other places as well, then we'll have to work out some other way to do it. Maybe create a CakePHP 'element' (like a mini-view) which generates js?
It gets called from the add and edit views of Services and Contacts, which means you can't use a relative path (because it can be either /services/add
or /services/edit/13
).
We could possibly also set a javascript variable on each page that calls it that contains the correct path?
This is the URL to the ajax call page. We either need to change this when deployed, or work out some way to make it dynamic...