diff --git a/tailbone/forms2/core.py b/tailbone/forms2/core.py index d429fda0..1da56d7e 100644 --- a/tailbone/forms2/core.py +++ b/tailbone/forms2/core.py @@ -697,7 +697,7 @@ class Form(object): context = kwargs context['form'] = self context['dform'] = dform - context['form_kwargs'] = {} + context.setdefault('form_kwargs', {}) # TODO: deprecate / remove the latter option here if self.auto_disable_save or self.auto_disable: context['form_kwargs']['class_'] = 'autodisable' diff --git a/tailbone/static/js/jquery.ui.tailbone.js b/tailbone/static/js/jquery.ui.tailbone.js index e8c14294..c0b44f26 100644 --- a/tailbone/static/js/jquery.ui.tailbone.js +++ b/tailbone/static/js/jquery.ui.tailbone.js @@ -261,6 +261,18 @@ that.grid.gridcore(); that.element.unmask(); }); + }, + + results_count: function(as_text) { + var count = null; + var match = /showing \d+ thru \d+ of (\S+)/.exec(this.element.find('.pager .showing').text()); + if (match) { + count = match[1]; + if (!as_text) { + count = parseInt(count, 10); + } + } + return count; } }); diff --git a/tailbone/static/js/tailbone.batch.js b/tailbone/static/js/tailbone.batch.js index fa66f96b..2844c0b4 100644 --- a/tailbone/static/js/tailbone.batch.js +++ b/tailbone/static/js/tailbone.batch.js @@ -10,8 +10,6 @@ $(function() { - $('.grid-wrapper').gridwrapper(); - $('#execute-batch').click(function() { if (has_execution_options) { $('#execution-options-dialog').dialog({ diff --git a/tailbone/templates/batch/edit.mako b/tailbone/templates/batch/edit.mako index f79ec2dd..2431b578 100644 --- a/tailbone/templates/batch/edit.mako +++ b/tailbone/templates/batch/edit.mako @@ -6,8 +6,6 @@ ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.batch.js'))}