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

Mobile: add button to follow/unfollow tags #5941

Closed
wants to merge 2 commits into from

Conversation

svbergerem
Copy link
Member

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.

@@ -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);

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.

@svbergerem svbergerem force-pushed the mobile-follow-tags branch from 1ff9566 to eac30fa Compare May 9, 2015 07:41
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'});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclosed string.

@svbergerem svbergerem force-pushed the mobile-follow-tags branch from eac30fa to dd25208 Compare May 9, 2015 07:46
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);

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.

Copy link
Member Author

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.

@svbergerem
Copy link
Member Author

This PR should be ready to review and merge.

mobile_tag_follow
mobile_tag_stop_following

@denschub
Copy link
Member

Merged, thanks!

@svbergerem svbergerem deleted the mobile-follow-tags branch May 10, 2015 00:03
@denschub denschub added this to the 0.5.1.0 milestone May 12, 2015
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

Successfully merging this pull request may close these issues.

4 participants