From c47a576f6c15f1b59206c8b8d6470f4fb505e5a4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 8 Sep 2008 14:23:53 -0400 Subject: [PATCH] change input buttons to submit buttons darcs-hash:20080908182353-84dde-c2825731b071e140b8bf8f633246eddc7c5b1f3c.gz --- lib/util.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/util.php b/lib/util.php index 6be317701f..70894aeffb 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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'); }