aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
authorJanek Lasocki-Biczysko <j.lasocki-biczysko@intrallect.com>2011-10-21 09:08:16 +0100
committerJanek Lasocki-Biczysko <j.lasocki-biczysko@intrallect.com>2011-10-21 09:08:16 +0100
commit420aa2389644c3824d06df5222390cada3829f5d (patch)
treea8914cbbd4a3a0f8da678daadbbb70a48de62947 /views/default/input
parenta6089b1d67498888a7cffafcdc6599fa37e5bcf3 (diff)
downloadelgg-420aa2389644c3824d06df5222390cada3829f5d.tar.gz
elgg-420aa2389644c3824d06df5222390cada3829f5d.tar.bz2
#3810 (No class in input/reset view)
Diffstat (limited to 'views/default/input')
-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