diff --git a/code/CalendarTimeField.php b/code/CalendarTimeField.php index b627d4e..e8d0674 100755 --- a/code/CalendarTimeField.php +++ b/code/CalendarTimeField.php @@ -1,8 +1,8 @@ 'text', 'class' => 'text' . ($this->extraClass() ? $this->extraClass() : ''), @@ -11,11 +11,11 @@ function Field() { 'value' => $this->attrValue(), 'tabindex' => $this->getTabIndex(), 'maxlength' => ($this->maxLength) ? $this->maxLength : null, - 'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null + 'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null ); - + if($this->disabled) $attributes['disabled'] = 'disabled'; - + return $this->createTag('input', $attributes); } -} \ No newline at end of file +}