aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-10-23 12:17:11 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-10-23 12:17:11 -0700
commitba28437e7fb16e2cd0a38168f0e3ba9c8efa771b (patch)
tree8565c80d36e8a1bab2b3928c9816be7a9e2b2112
parentb0e599dc5c1c1e4d1a57b4adf345210778369650 (diff)
parent420aa2389644c3824d06df5222390cada3829f5d (diff)
downloadelgg-ba28437e7fb16e2cd0a38168f0e3ba9c8efa771b.tar.gz
elgg-ba28437e7fb16e2cd0a38168f0e3ba9c8efa771b.tar.bz2
Merge pull request #78 from janeklb/t3810
Fixes #3810 Added class option for input/reset
-rw-r--r--views/default/input/reset.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/default/input/reset.php b/views/default/input/reset.php
index 12866421e..d0eb06709 100644
--- a/views/default/input/reset.php
+++ b/views/default/input/reset.php
@@ -4,8 +4,16 @@
*
* @package Elgg
* @subpackage Core
+ *
+ * @uses $vars['class'] Additional CSS class
*/
+if (isset($vars['class'])) {
+ $vars['class'] = "elgg-button-cancel {$vars['class']}";
+} else {
+ $vars['class'] = "elgg-button-cancel";
+}
+
$vars['type'] = 'reset';
echo elgg_view('input/button', $vars); \ No newline at end of file