This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/assets/javascripts/lib/member/member-role.js.erb

18 lines
390 B
Plaintext

$(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() {});
},
});
});