diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-10-23 12:17:11 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-10-23 12:17:11 -0700 |
commit | ba28437e7fb16e2cd0a38168f0e3ba9c8efa771b (patch) | |
tree | 8565c80d36e8a1bab2b3928c9816be7a9e2b2112 /views | |
parent | b0e599dc5c1c1e4d1a57b4adf345210778369650 (diff) | |
parent | 420aa2389644c3824d06df5222390cada3829f5d (diff) | |
download | elgg-ba28437e7fb16e2cd0a38168f0e3ba9c8efa771b.tar.gz elgg-ba28437e7fb16e2cd0a38168f0e3ba9c8efa771b.tar.bz2 |
Merge pull request #78 from janeklb/t3810
Fixes #3810 Added class option for input/reset
Diffstat (limited to 'views')
-rw-r--r-- | views/default/input/reset.php | 8 |
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 |