]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change input buttons to submit buttons
authorEvan Prodromou <evan@prodromou.name>
Mon, 8 Sep 2008 18:23:53 +0000 (14:23 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 8 Sep 2008 18:23:53 +0000 (14:23 -0400)
darcs-hash:20080908182353-84dde-c2825731b071e140b8bf8f633246eddc7c5b1f3c.gz

lib/util.php

index 6be317701f12fcd2df58cd5bce345282d4782d17..70894aeffbd3611b7c4d8b0bb6fe472daf0a8dfb 100644 (file)
@@ -1553,9 +1553,7 @@ function common_disfavor_form($notice) {
                                                                           'action' => common_local_url('disfavor')));
        common_hidden('token', common_session_token());
        common_hidden('notice', $notice->id);
-       common_element('input', array('type' => 'button',
-                                                                 'class' => 'disfavor'),
-                                  '♥');
+       common_submit('disfavor-submit-' . $notice->id, '♥');
        common_element_end('form');
 }
 
@@ -1565,9 +1563,7 @@ function common_favor_form($notice) {
                                                                           'action' => common_local_url('disfavor')));
        common_hidden('token', common_session_token());
        common_hidden('notice', $notice->id);
-       common_element('input', array('type' => 'button',
-                                                                 'class' => 'disfavor'),
-                                  '♡');
+       common_submit('favor-submit-' . $notice->id, '♡');
        common_element_end('form');
 }