Skip to content

Instantly share code, notes, and snippets.

@matthisk
Created July 8, 2016 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthisk/0380521b49271563ccdb2979ea520cb4 to your computer and use it in GitHub Desktop.
Save matthisk/0380521b49271563ccdb2979ea520cb4 to your computer and use it in GitHub Desktop.
$('button').on('click', function(e) {
var self = this;
e.preventDefault();
user.get({
limit: 1,
'mark_read': [$(this).attr('group')],
}).then(function(results) {
window.location = $(self).attr('href');
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment