web: make the submit buttons work
    
        | author | Steve Losh <steve@stevelosh.com> | 
    
        | date | Sun, 13 Jun 2010 02:35:46 -0400 | 
    
    
        | parents | 444f6ef08d88 | 
    
        | children | 92e5e6c71595 | 
    
        | branches/tags | (none) | 
    
        | files | review/static/ui.js review/templates/changeset.html | 
Changes
    
--- 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();
+    });
 });
--- 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>