diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page | 5 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page index 4af5d637..cd778625 100644 --- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page +++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page @@ -29,7 +29,10 @@ <tr><td class="samplenote"> Default options with a little css applied: </td><td class="sampleaction"> - <com:TJuiSelectable ID="repeater1" onSelectedIndexChanged="repeater1_onSelectedIndexChanged"/> + <com:TJuiSelectable + ID="repeater1" + OnStop="repeater1_onStop" + /> <com:TActiveLabel ID="label1" /> </td></tr> diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php index cf8d40f1..ada38408 100644 --- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php +++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php @@ -21,10 +21,10 @@ class Home extends TPage } } - public function repeater1_onSelectedIndexChanged($sender, $param) + public function repeater1_onStop($sender, $param) { $this->label1->Text="Selected items:"; - $items = $param->getSelectedIndexes(); + $items = $param->getCallbackParameter()->index; foreach($items as $index) $this->label1->Text.=' '.$this->data[$index]; |