From eee262e0e7d13f2d49d824d834d5efc4aea6d745 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 17 Sep 2010 18:27:05 +0000 Subject: [PATCH] nice buttons --- lam/lib/html.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 22c5cf27..be1c7166 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -548,6 +548,7 @@ class htmlButton extends htmlElement { } // text button else { + $class = ' class="smallPadding"'; if ($this->value != null) { $value = ' value="' . $this->value . '"'; } @@ -559,7 +560,15 @@ class htmlButton extends htmlElement { if (!$this->isEnabled) { $disabled = ' disabled'; } - echo ''; + echo ''; + if (!$this->isImageButton) { + // text buttons get JQuery style + echo ''; + } return array($this->name => 'submit'); }