diff options
author | ctrlaltca <> | 2012-07-24 18:45:25 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-24 18:45:25 +0000 |
commit | bb1b020a37785acf824c7c76bf5a1f868e826297 (patch) | |
tree | 27ebd8b222f2760cd64d2ed054f3fc50830ba3e9 /editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet | |
parent | 59ef1ca568d8e20a726e343556113c117ce5022c (diff) |
updated plugin for textmate editor (works on "sublime text editor 2", too): added activecontrols
Diffstat (limited to 'editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet')
-rw-r--r-- | editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>content</key> + <string><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></string> + <key>name</key> + <string>TCallback</string> + <key>scope</key> + <string>text.html</string> + <key>tabTrigger</key> + <string>TCallback</string> + <key>uuid</key> + <string>B2C49ECC-2119-4609-9DE6-E85DA4FD7630</string> +</dict> +</plist> |