diff --git a/app/assets/javascripts/lib/member/member-role.js.erb b/app/assets/javascripts/lib/member/member-role.js.erb new file mode 100644 index 000000000..7d1629fd6 --- /dev/null +++ b/app/assets/javascripts/lib/member/member-role.js.erb @@ -0,0 +1,18 @@ +$(function() { + // for toggle-check + $('.role_filter_checked').on({ + change: function() { + var _path = $(this).data('path'); + // var path = <%= @path %> + $.ajax({ + url: _path, + type: 'POST', + dataType: 'json', + data: {remote: true}, + }) + .done(function() {}) + .fail(function() {}) + .always(function() {}); + }, + }); +}); \ No newline at end of file