select rect

This commit is contained in:
Claude 2016-09-04 13:20:02 +02:00
parent f2e794ae92
commit 122dd6ec04
3 changed files with 15 additions and 6 deletions

View File

@ -568,3 +568,8 @@ h4 {
.ui-selectable>.ui-selected { background-color: #a6c9e2; } .ui-selectable>.ui-selected { background-color: #a6c9e2; }
.ui-selectable>.ui-selecting { background: #FECA40; } .ui-selectable>.ui-selecting { background: #FECA40; }
.ui-selectable-helper {
position: absolute;
z-index: 100;
border:1px dotted black;
}

View File

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

View File

@ -37,7 +37,9 @@
<?php }?> <?php }?>
</tbody> </tbody>
</table> </table>
<div id="select-result"></div> <h2 class="confirm_title">Confirm deletion of the following pastes:</h2>
<div class="paste_deletestack"></div>
<input type="hidden" name="pastes_to_delete" />
<?php } else { ?> <?php } else { ?>
<p><?php echo lang('paste_missing'); ?> :(</p> <p><?php echo lang('paste_missing'); ?> :(</p>
<?php }?> <?php }?>