aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-23 21:08:46 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-23 21:08:46 -0400
commit986b4d669717da6140114f2aecf1d10f29178817 (patch)
treea4d9935fd4d41a505acf0dfd86edbaf8f4efecea
parentba28437e7fb16e2cd0a38168f0e3ba9c8efa771b (diff)
downloadelgg-986b4d669717da6140114f2aecf1d10f29178817.tar.gz
elgg-986b4d669717da6140114f2aecf1d10f29178817.tar.bz2
Refs #3810 standardizes the button views
-rw-r--r--views/default/input/reset.php9
-rw-r--r--views/default/input/submit.php2
2 files changed, 4 insertions, 7 deletions
diff --git a/views/default/input/reset.php b/views/default/input/reset.php
index d0eb06709..082da8669 100644
--- a/views/default/input/reset.php
+++ b/views/default/input/reset.php
@@ -5,15 +5,10 @@
* @package Elgg
* @subpackage Core
*
- * @uses $vars['class'] Additional CSS class
+ * @uses $vars['class'] CSS class that replaces elgg-button-cancel
*/
-if (isset($vars['class'])) {
- $vars['class'] = "elgg-button-cancel {$vars['class']}";
-} else {
- $vars['class'] = "elgg-button-cancel";
-}
-
$vars['type'] = 'reset';
+$vars['class'] = elgg_extract('class', $vars, 'elgg-button-cancel');
echo elgg_view('input/button', $vars); \ No newline at end of file
diff --git a/views/default/input/submit.php b/views/default/input/submit.php
index 64b135afa..df369b3b4 100644
--- a/views/default/input/submit.php
+++ b/views/default/input/submit.php
@@ -4,6 +4,8 @@
*
* @package Elgg
* @subpackage Core
+ *
+ * @uses $vars['class'] CSS class that replaces elgg-button-submit
*/
$vars['type'] = 'submit';