Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task List - Ajax Request #92

Open
aalasolutions-zz opened this issue Mar 24, 2015 · 0 comments
Open

Task List - Ajax Request #92

aalasolutions-zz opened this issue Mar 24, 2015 · 0 comments

Comments

@aalasolutions-zz
Copy link

I have noted that the Add new Task to a project is sending a request to /dashboard/users,

For me I am trying to run this on PHP 5.3 and making changes and I have noticed that, my project is hosted inside some nested directory and the call was being sent to the root and was having 404

I have changed

assets/js/dashboard/projectusers.js:12

var UserCollection = Backbone.Collection.extend({
    model: UserModel,
    url: 'dashboard/users',
});

to

var url = window.location.href;
var tempurl = url.split('dashboard')[0];
var UserCollection = Backbone.Collection.extend({
    model: UserModel,
    url: tempurl + 'dashboard/users',
});

Same thing done on
assets/js/dashboard/projectuserlist.js:10

Now it is loading the users properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant