| 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 |
});
|