diff options
author | xue <> | 2007-09-28 01:31:56 +0000 |
---|---|---|
committer | xue <> | 2007-09-28 01:31:56 +0000 |
commit | bf52fb00087ceb045f50920e031538fbef9002a1 (patch) | |
tree | 374d00473344a35a763c7edf221b4a2751745249 /framework/Web | |
parent | df65c8daa6ec21c3cd8fe698e7d27d489200173e (diff) |
enabled unselection.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/WebControls/TDropDownList.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/framework/Web/UI/WebControls/TDropDownList.php b/framework/Web/UI/WebControls/TDropDownList.php index 90668b95..3270ad16 100644 --- a/framework/Web/UI/WebControls/TDropDownList.php +++ b/framework/Web/UI/WebControls/TDropDownList.php @@ -107,23 +107,6 @@ class TDropDownList extends TListControl implements IPostBackDataHandler, IValid }
/**
- * @return integer the index (zero-based) of the item being selected.
- * If none is selected, the return value is 0 meaning the first item is selected.
- * If there is no items, it returns -1.
- */
- public function getSelectedIndex()
- {
- $index=parent::getSelectedIndex();
- if($index<0 && $this->getHasItems())
- {
- $this->setSelectedIndex(0);
- return 0;
- }
- else
- return $index;
- }
-
- /**
* @throws TNotSupportedException if this method is invoked
*/
public function setSelectedIndices($indices)
|