summaryrefslogtreecommitdiffstats
path: root/forum/templates/content/js/com.cnprog.admin.js
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-09 16:48:38 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-09 16:48:38 -0500
commit3c4c71fc19865bfb75231c425fae31c6b2c211de (patch)
tree535fc16fef76b1e89e136c3e4a0947fe8613fe01 /forum/templates/content/js/com.cnprog.admin.js
parentbdf1cc4f9dd3f0ac06ba1af3c7d35c72cc358297 (diff)
downloadaskbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.tar.gz
askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.tar.bz2
askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.zip
started working towards skinning forum app - first step - move templates to app
Diffstat (limited to 'forum/templates/content/js/com.cnprog.admin.js')
-rw-r--r--forum/templates/content/js/com.cnprog.admin.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/forum/templates/content/js/com.cnprog.admin.js b/forum/templates/content/js/com.cnprog.admin.js
new file mode 100644
index 00000000..39dff48c
--- /dev/null
+++ b/forum/templates/content/js/com.cnprog.admin.js
@@ -0,0 +1,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);
+ });
+});