Compare commits

..
Author SHA1 Message Date
Spen 54c19e87fe add member-role.js 2013-11-15 16:53:58 +08:00
Spen ea3f9c8163 add Member frontend page selection options and fix backend role filter page 2013-11-15 16:16:39 +08:00
@@ -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() {});
},
});
});