From bb1b020a37785acf824c7c76bf5a1f868e826297 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Tue, 24 Jul 2012 18:45:25 +0000 Subject: updated plugin for textmate editor (works on "sublime text editor 2", too): added activecontrols --- .../Prado.tmbundle/Snippets/TCallback.tmSnippet | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet (limited to 'editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet') diff --git a/editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet b/editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet new file mode 100644 index 00000000..a0386636 --- /dev/null +++ b/editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet @@ -0,0 +1,23 @@ + + + + + content + <com:TCallback ID="${1:callback1}" OnCallback="${2:$1_oncallback}" /> +<script type="text/javascript"> + function do_callback1() + { + var request = <%= $this->${3:$1}->ActiveControl->Javascript %>; + request.dispatch(); + } +</script> + name + TCallback + scope + text.html + tabTrigger + TCallback + uuid + B2C49ECC-2119-4609-9DE6-E85DA4FD7630 + + -- cgit v1.2.3