From b47c5019cc1f783cba9b5f6d9798a766b2fe1586 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 8 Feb 2014 12:44:26 +0100 Subject: TJuiSortable events --- .../protected/pages/JuiControls/Samples/TJuiSortable/Home.page | 5 ++++- .../protected/pages/JuiControls/Samples/TJuiSortable/Home.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'demos/quickstart/protected/pages/JuiControls') diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.page b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.page index 2e1d2f55..cbb1465b 100644 --- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.page +++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.page @@ -23,7 +23,10 @@ Default options with a little css applied: - + diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.php index 4b3a0ff4..d96df302 100644 --- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.php +++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.php @@ -21,10 +21,10 @@ class Home extends TPage } } - public function repeater1_onSort($sender, $param) + public function repeater1_onStop($sender, $param) { $this->label1->Text="Items order:"; - $order = $param->getOrder(); + $order = $param->getCallbackParameter()->index; foreach($order as $index) $this->label1->Text.=' '.$this->data[$index]; } -- cgit v1.2.3