nice buttons

This commit is contained in:
Roland Gruber 2010-09-17 18:27:05 +00:00
parent 5a02a85c3e
commit eee262e0e7
1 changed files with 10 additions and 1 deletions

View File

@ -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 '<input type="submit"' . $name . $value . $style . $class . $title . $disabled . '>';
echo '<input type="submit" id="btn_' . $this->name . '"' . $name . $value . $style . $class . $title . $disabled . '>';
if (!$this->isImageButton) {
// text buttons get JQuery style
echo '<script type="text/javascript">';
echo ' jQuery(document).ready(function() {';
echo "jQuery('#btn_" . $this->name . "').button();";
echo '});';
echo '</script>';
}
return array($this->name => 'submit');
}