add member-role.js
This commit is contained in:
parent
ea3f9c8163
commit
54c19e87fe
|
@ -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() {});
|
||||
},
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue