Add alertresponse2.
This commit is contained in:
parent
ca6e1ea0bc
commit
b9b8390753
1 changed files with 14 additions and 0 deletions
14
voussoir/alertresponse2.sublime-snippet
Normal file
14
voussoir/alertresponse2.sublime-snippet
Normal file
|
@ -0,0 +1,14 @@
|
|||
<snippet>
|
||||
<content><![CDATA[
|
||||
if (! response.meta.json_ok)
|
||||
{
|
||||
alert(JSON.stringify(response));
|
||||
return;
|
||||
}
|
||||
]]></content>
|
||||
<tabTrigger>alertresponse2</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
Loading…
Reference in a new issue