add member-role.js

This commit is contained in:
Spen 2013-11-15 16:53:58 +08:00 committed by Manson Wang
parent ce8e9c0a5f
commit c291f15e23
1 changed files with 18 additions and 0 deletions

View File

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