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', filter: 'tr',
cancel: 'a', cancel: 'a',
stop: function() { stop: function() {
var result = $("#select-result").empty(); var $result = $("#select-result").empty();
$(".ui-selected", this).each(function() { $result.append('Delete: ');
var index = $("tr").index(this); $(".ui-selected", this).each(function(i, el) {
result.append(" #" + (index + 1)); var id = $('a', el).attr('href').split('view/')[1];
$result.append(" " + (id));
}); });
$result.append('?');
} }
}); });
}; };

View File

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