Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active May 27, 2016 05:06
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 goofmint/26208a947e8eb6252ea119a64cdb7624 to your computer and use it in GitHub Desktop.
Save goofmint/26208a947e8eb6252ea119a64cdb7624 to your computer and use it in GitHub Desktop.
'.confirm click': function(ctx, $el) {
var ids = '' + $el.data('confirm-targets');
ids = ids.split(',');
if (!ids.length) {
return;
}
if (!confirm(ids.length + '件のデータを"承認済"にします。よろしいですか?')) {
return;
}
this.trigger('confirmPurchase', {
ids: ids
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment