# HG changeset patch # User Steve Losh <steve@stevelosh.com> # Date 1276410946 14400 # Node ID 0d78b56ae9aa62ba270a7da8439558636c600a97 # Parent 444f6ef08d882a8d5142d74e4a1dfc78098bf391 web: make the submit buttons work diff -r 444f6ef08d88 -r 0d78b56ae9aa review/static/ui.js --- a/review/static/ui.js Sun Jun 13 02:31:31 2010 -0400 +++ b/review/static/ui.js Sun Jun 13 02:35:46 2010 -0400 @@ -13,4 +13,7 @@ }); return false; }); + $(".submit").live('click', function() { + $(this).closest("form").submit(); + }); }); diff -r 444f6ef08d88 -r 0d78b56ae9aa review/templates/changeset.html --- a/review/templates/changeset.html Sun Jun 13 02:31:31 2010 -0400 +++ b/review/templates/changeset.html Sun Jun 13 02:35:46 2010 -0400 @@ -94,7 +94,11 @@ <label class="infield" for="id_signoff-form_body">Signoff message</label> <textarea autocomplete="off" id="id_signoff-form_body" cols="60" rows="6" name="new-signoff-body">{% if cu_signoff %}{{ cu_signoff.message }}{% endif %}</textarea> </div> - <a class="submit button" href="#"><span>Add Signoff</span></a> + {% if cu_signoff %} + <a class="submit button" href="#"><span>Change Signoff</span></a> + {% else %} + <a class="submit button" href="#"><span>Add Signoff</span></a> + {% endif %} <a class="cancel button" href="#"><span>Cancel</span></a> </form> </div>