Refactor batch execution options to use colander/deform
This commit is contained in:
parent
2cbacd6187
commit
dd04459748
12 changed files with 87 additions and 99 deletions
|
@ -43,11 +43,8 @@
|
|||
% if master.bulk_deletable and request.has_perm('{}.bulk_delete'.format(permission_prefix)):
|
||||
|
||||
$('form[name="bulk-delete"] button').click(function() {
|
||||
var count = 0;
|
||||
var match = /showing \d+ thru \d+ of (\S+)/.exec($('.pager .showing').text());
|
||||
if (match) {
|
||||
count = match[1];
|
||||
} else {
|
||||
var count = $('.grid-wrapper').gridwrapper('results_count', true);
|
||||
if (count === null) {
|
||||
alert("There don't seem to be any results to delete!");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue