summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-03-11 21:57:29 +0000
committerxue <>2006-03-11 21:57:29 +0000
commitdcaeab55c94f6f51ab92b7d1a70503a544df73cd (patch)
treee3aa4e96703d90f41de02b57f3882cd43533c64f
parent614abf2377f4348df56f34de674b27ad1ffe2917 (diff)
Fixed a bug in rendering pure text items.
-rw-r--r--framework/Web/UI/WebControls/TBulletedList.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/TBulletedList.php b/framework/Web/UI/WebControls/TBulletedList.php
index fd0226c0..da9d196e 100644
--- a/framework/Web/UI/WebControls/TBulletedList.php
+++ b/framework/Web/UI/WebControls/TBulletedList.php
@@ -282,11 +282,6 @@ class TBulletedList extends TListControl implements IPostBackEventHandler
$this->renderLinkButtonItem($writer, $item, $index);
break;
}
- if(($accesskey=$this->getAccessKey())!=='')
- $writer->addAttribute('accesskey',$accesskey);
- $writer->renderBeginTag('a');
- $writer->write(THttpUtility::htmlEncode($item->getText()));
- $writer->renderEndTag();
}
protected function renderTextItem($writer, $item, $index)
@@ -312,6 +307,11 @@ class TBulletedList extends TListControl implements IPostBackEventHandler
if(($target=$this->getTarget())!=='')
$writer->addAttribute('target',$target);
}
+ if(($accesskey=$this->getAccessKey())!=='')
+ $writer->addAttribute('accesskey',$accesskey);
+ $writer->renderBeginTag('a');
+ $writer->write(THttpUtility::htmlEncode($item->getText()));
+ $writer->renderEndTag();
}
protected function renderLinkButtonItem($writer, $item, $index)
@@ -325,6 +325,11 @@ class TBulletedList extends TListControl implements IPostBackEventHandler
$writer->addAttribute('id', $this->getClientID().$index);
$writer->addAttribute('href', "javascript:;//".$this->getClientID().$index);
}
+ if(($accesskey=$this->getAccessKey())!=='')
+ $writer->addAttribute('accesskey',$accesskey);
+ $writer->renderBeginTag('a');
+ $writer->write(THttpUtility::htmlEncode($item->getText()));
+ $writer->renderEndTag();
}
/**