cgaspard / mantiskanban

Mantis Kanban that uses ajax and mantisconnect
45 stars 33 forks source link

mantisconnect api url #7

Closed dreed47 closed 11 years ago

dreed47 commented 11 years ago

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";

cgaspard commented 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.

dreed47 commented 11 years ago

how about make the default in the code use location.hostname and let people override if in their own config.js is necessary?

cgaspard commented 11 years ago

I can live with that. 0d79f41