summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:44:26 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:44:26 +0100
commitb47c5019cc1f783cba9b5f6d9798a766b2fe1586 (patch)
tree2e08353b059f7861b9a79eadd1179fdc6758d5ee /demos/quickstart/protected/pages/JuiControls
parent8c78c2f6dda9c9075509e99687e1e6f41ca9ac0f (diff)
TJuiSortable events
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls')
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.page5
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiSortable/Home.php4
2 files changed, 6 insertions, 3 deletions
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 @@
<tr><td class="samplenote">
Default options with a little css applied:
</td><td class="sampleaction">
- <com:TJuiSortable ID="repeater1" onSort="repeater1_onSort"/>
+ <com:TJuiSortable
+ ID="repeater1"
+ onStop="repeater1_onStop"
+ />
<com:TActiveLabel ID="label1" />
</td></tr>
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];
}