From dcaeab55c94f6f51ab92b7d1a70503a544df73cd Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 11 Mar 2006 21:57:29 +0000 Subject: Fixed a bug in rendering pure text items. --- framework/Web/UI/WebControls/TBulletedList.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'framework') 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(); } /** -- cgit v1.2.3