summaryrefslogtreecommitdiffstats
path: root/templates/content/js/com.cnprog.admin.js
blob: 39dff48c0c73e9c974b7afa1dd0fd30a1ad1f193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$(document).ready( function(){
    var options = {
                   success: function(a,b){$('.admin #action_status').html($.i18n._('changes saved'));},
                   dataType:'json',
                   timeout:5000,
                   url: scriptUrl + $.i18n._('moderate-user/') + viewUserID +  '/'
                    };
    var form = $('.admin #moderate_user_form').ajaxForm(options);
    var box = $('.admin input#id_is_approved').click(function(){ 
        $('.admin #action_status').html($.i18n._('sending data...'));
        form.ajaxSubmit(options);
    });
});