parse ids

This commit is contained in:
Claude 2016-09-03 20:39:54 +02:00
parent eb1f629a15
commit b1eef47fbe
2 changed files with 7 additions and 4 deletions

View File

@ -61,11 +61,13 @@ ST.spamadmin = function() {
filter: 'tr',
cancel: 'a',
stop: function() {
var result = $("#select-result").empty();
$(".ui-selected", this).each(function() {
var index = $("tr").index(this);
result.append(" #" + (index + 1));
var $result = $("#select-result").empty();
$result.append('Delete: ');
$(".ui-selected", this).each(function(i, el) {
var id = $('a', el).attr('href').split('view/')[1];
$result.append(" " + (id));
});
$result.append('?');
}
});
};

View File

@ -37,6 +37,7 @@
<?php }?>
</tbody>
</table>
<div id="select-result"></div>
<?php } else { ?>
<p><?php echo lang('paste_missing'); ?> :(</p>
<?php }?>