]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge ../csarven into uiredesign
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 15 Jan 2009 20:54:03 +0000 (20:54 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 15 Jan 2009 20:54:03 +0000 (20:54 +0000)
Conflicts:

lib/action.php

1  2 
lib/action.php
lib/disfavorform.php
lib/favorform.php
lib/form.php
lib/noticelist.php

diff --cc lib/action.php
Simple merge
index 25f99f43c157467c3886e35fdcebdee346f3f01a,25f99f43c157467c3886e35fdcebdee346f3f01a..ffca0cd8bf24638e7380eeac725ad00869694582
@@@ -127,4 -127,4 +127,16 @@@ class DisfavorForm extends For
          $this->out->submit('disfavor-submit-' . $this->notice->id,
                             _('Disfavor favorite'));
      }
++    
++    /**
++     * Class of the form.
++     *
++     * @return string the form's class
++     */
++
++    function formClass()
++    {
++      return 'disfavor';
++    }
++
  }
index c67e186974e1241a905d8984e726f4d4bac5c932,c67e186974e1241a905d8984e726f4d4bac5c932..4f4fd72a9dc4321dc76fc33d8df0fe5a3dac13d4
@@@ -127,4 -127,4 +127,15 @@@ class FavorForm extends For
          $this->out->submit('favor-submit-' . $this->notice->id,
                             _('Make a favorite'));
      }
++    
++    /**
++     * Class of the form.
++     *
++     * @return string the form's class
++     */
++    
++    function formClass()
++    {
++      return 'favor';
++    }
  }
diff --cc lib/form.php
index 5c75bb65fa20747a80aeda4f748fda7475ae990c,5c75bb65fa20747a80aeda4f748fda7475ae990c..bd68fb0c5f69cecbf000c4c1fe2e00339d83ad0b
@@@ -65,6 -65,6 +65,7 @@@ class Form extends Widge
      {
          $this->out->elementStart('form',
                                   array('id' => $this->id(),
++                                     'class' => $this->formClass(),
                                         'method' => 'POST',
                                         'action' => $this->action()));
          $this->out->elementStart('fieldset');
      function action()
      {
      }
++    
++    /**
++     * Class of the form.
++     *
++     * @return string the form's class
++     */
++
++    function formClass()
++    {
++      return 'form';
++    }
  }
index fb3e66f9fb90d108e3bba506b633c07d3be23e0e,fb3e66f9fb90d108e3bba506b633c07d3be23e0e..0fc6d513f4dfa2127b1473ee93502277390e55bb
@@@ -229,9 -229,9 +229,11 @@@ class NoticeListItem extends Widge
          $user = common_current_user();
          if ($user) {
              if ($user->hasFave($this->notice)) {
--                common_disfavor_form($this->notice);
++              $disfavor = new DisfavorForm($this->out, $this->notice);
++              $disfavor->show();
              } else {
--                common_favor_form($this->notice);
++              $favor = new FavorForm($this->out, $this->notice);
++              $favor->show();
              }
          }
      }