/[drupal]/contributions/modules/abuse/abuse.js
ViewVC logotype

Contents of /contributions/modules/abuse/abuse.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Apr 7 16:37:02 2008 UTC (19 months, 2 weeks ago) by btmash
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/javascript
Dev version of 6.x code
1 $(function(){
2 // setup each ticket for inline/ajax moderation
3 $('li.ticket').each(function(){
4 var ticket = this;
5 $ticket = $(this);
6 var options = {
7 target: '#message-wrapper',
8 url: Drupal.base_url + 'admin/abuse/moderate/content/js',
9 type: 'post',
10 dataType: 'json',
11 success: function(data) {
12 $('#message-wrapper').text(data.data);
13 if (data.status == true) {
14 $(ticket).hide('slow', function(){
15 $(ticket).remove();
16 });
17 }
18 }
19 };
20 $("form", $ticket).ajaxForm(options);
21 });
22 });

  ViewVC Help
Powered by ViewVC 1.1.2