summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected')
-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];
}