-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Mobile: add button to follow/unfollow tags #5941
Conversation
@@ -16,9 +16,9 @@ Handlebars.registerHelper('urlTo', function(path_helper, id, data){ | |||
if( !data ) { | |||
// only one argument given to helper, mangle parameters | |||
data = id; | |||
return Routes[path_helper+'_path'](data.hash); | |||
return Routes[path_helper](data.hash); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identifier 'path_helper' is not in camel case.
1ff9566
to
eac30fa
Compare
this.receiving_contact = factory.person({relationship: 'receiving'}); | ||
this.blocked_contact = factory.person({relationship: 'blocked', block: {id: 1}}); | ||
this.mutualContact = factory.person({relationship: "mutual"}); | ||
this.sharingContact = factory.person({relationship: "sharing'}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed string.
eac30fa
to
dd25208
Compare
var request = jasmine.Ajax.requests.mostRecent(); | ||
|
||
expect(request.method).toEqual("POST"); | ||
expect($.parseJSON(request.params).block.person_id).toEqual(this.sharing_contact.id); | ||
expect($.parseJSON(request.params).block.person_id).toEqual(this.sharingContact.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identifier 'person_id' is not in camel case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not in camel case because it is data which is sent to the server. Again: won't fix.
Merged, thanks! |
and refactor js-routes because of camelCase errors in jshint.
It looks like one needs to run
bin/rake tmp:cache:clear
to be able to use the new js-routes paths.