Closed dreed47 closed 11 years ago
For now I've moved the URL to config.js And told git to ignore the changes. This should allow you to do your own custom config, and allow me to remove my production url from the source.
I also like the fact that using safari, I can point and test any mantis intance using only local files. Making this change would break the ability to do that.
I will consider doing this when I make an actual production release though.
how about make the default in the code use location.hostname and let people override if in their own config.js is necessary?
I can live with that. 0d79f41
Since you require (for the most part) that the app be installed within a sub-directory of mantis then you could use something like this in mantis.js.
var mantisConnectURL = "http://" + location.hostname + "/api/soap/mantisconnect.php";