]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
notice_favorite class
authorsarven <csarven@plantard.controlezvous.ca>
Thu, 15 Jan 2009 23:59:43 +0000 (23:59 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Thu, 15 Jan 2009 23:59:43 +0000 (23:59 +0000)
submit doesn't need a paragraph wrapper

lib/favorform.php
lib/htmloutputter.php

index 4f4fd72a9dc4321dc76fc33d8df0fe5a3dac13d4..8b01483b2eb1f9c070c5bae340f384882c57ce64 100644 (file)
@@ -125,7 +125,7 @@ class FavorForm extends Form
     function formActions()
     {
         $this->out->submit('favor-submit-' . $this->notice->id,
-                           _('Make a favorite'));
+                           _('Favorite'));
     }
     
     /**
@@ -136,6 +136,6 @@ class FavorForm extends Form
     
     function formClass()
     {
-       return 'favor';
+       return 'notice_favorite';
     }
-}
\ No newline at end of file
+}
index 75a995bef190dbcbc4ff99c43a1159254c62a81e..eb8a612e4ff0f6d20b91fe56a1bcf8633a795deb 100644 (file)
@@ -324,13 +324,11 @@ class HTMLOutputter extends XMLOutputter
 
     function submit($id, $label, $cls='submit', $name=null)
     {
-        $this->elementStart('p');
         $this->element('input', array('type' => 'submit',
                                       'id' => $id,
                                       'name' => ($name) ? $name : $id,
                                       'class' => $cls,
                                       'value' => $label));
-        $this->elementEnd('p');
     }
 
     /**