]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/media/js/com.cnprog.admin.js
deleting the test file
[osqa.git] / forum / skins / default / media / js / com.cnprog.admin.js
1 $(document).ready( function(){
2     var options = {
3                    success: function(a,b){$('.admin #action_status').html($.i18n._('changes saved'));},
4                    dataType:'json',
5                    timeout:5000,
6                    url: scriptUrl + $.i18n._('moderate-user/') + viewUserID +  '/'
7                     };
8     var form = $('.admin #moderate_user_form').ajaxForm(options);
9     var box = $('.admin input#id_is_approved').click(function(){ 
10         $('.admin #action_status').html($.i18n._('sending data...'));
11         form.ajaxSubmit(options);
12     });
13 });