summaryrefslogtreecommitdiff
path: root/editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-24 18:45:25 +0000
committerctrlaltca <>2012-07-24 18:45:25 +0000
commitbb1b020a37785acf824c7c76bf5a1f868e826297 (patch)
tree27ebd8b222f2760cd64d2ed054f3fc50830ba3e9 /editors/Textmate/Prado.tmbundle/Snippets/TCallback.tmSnippet
parent59ef1ca568d8e20a726e343556113c117ce5022c (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.tmSnippet23
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>&lt;com:TCallback ID="${1:callback1}" OnCallback="${2:$1_oncallback}" /&gt;
+&lt;script type="text/javascript"&gt;
+ function do_callback1()
+ {
+ var request = &lt;%= $this-&gt;${3:$1}-&gt;ActiveControl-&gt;Javascript %&gt;;
+ request.dispatch();
+ }
+&lt;/script&gt;</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>