diff options
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> |