diff --git a/tailbone/static/js/tailbone.js b/tailbone/static/js/tailbone.js index d9022dbf..91b3c229 100644 --- a/tailbone/static/js/tailbone.js +++ b/tailbone/static/js/tailbone.js @@ -177,8 +177,14 @@ $(function() { $('a.button.autodisable').click(function() { disable_button(this); }); - $('input[type="submit"].autodisable').click(function() { - disable_button(this); + // for some reason chrome requires us to do things this way... + // https://stackoverflow.com/questions/16867080/onclick-javascript-stops-form-submit-in-chrome + // https://stackoverflow.com/questions/5691054/disable-submit-button-on-form-submit + $('form.autodisable').submit(function() { + var submit = $(this).find('input[type="submit"]'); + if (submit.length) { + disable_button(submit); + } }); /* diff --git a/tailbone/templates/base.mako b/tailbone/templates/base.mako index 22fedede..d11dc90a 100644 --- a/tailbone/templates/base.mako +++ b/tailbone/templates/base.mako @@ -138,7 +138,7 @@ var logout_url = '${request.route_url('logout')}'; var noop_url = '${request.route_url('noop')}'; - ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.js'))} + ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.js') + '?ver={}'.format(tailbone.__version__))} %def> <%def name="extra_javascript()">%def> diff --git a/tailbone/templates/master/clone.mako b/tailbone/templates/master/clone.mako index c4ed4380..438421dc 100644 --- a/tailbone/templates/master/clone.mako +++ b/tailbone/templates/master/clone.mako @@ -14,11 +14,11 @@
Are you sure about this?