summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-10 09:41:31 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-10 09:41:31 +0100
commitf35d43399a9ce03f08ffa326812bc5ed6764ef9e (patch)
treea27b36d48835f584b10bb8fc5132309da1337c81 /tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
parent20dee7ffd329bb595c56b592c30b269b226fea5c (diff)
Ported some tests to jQuery
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page')
-rwxr-xr-xtests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page16
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page b/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
index a7875c0d..7551336d 100755
--- a/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
@@ -14,14 +14,12 @@
Click Me!
</div>
<com:TActiveLabel ID="label2" Text="Label 2" />
- <script type="text/javascript">
- Event.OnLoad(function()
- {
- Event.observe($("div1"), "click", function()
- {
- Prado.Callback("<%= $this->callback1->UniqueID %>")
- })
- })
- </script>
+ <com:TClientScript>
+ jQuery( document ).ready(function() {
+ jQuery("#div1").click(function() {
+ Prado.Callback("<%= $this->callback1->UniqueID %>");
+ });
+ });
+ </com:TClientScript>
</com:TForm>