Add alertresponse3.
This commit is contained in:
parent
a2f5024fc1
commit
7471fdf55e
2 changed files with 12 additions and 1 deletions
|
@ -6,6 +6,6 @@ if (response.meta.status !== 200)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
]]></content>
|
]]></content>
|
||||||
<tabTrigger>alertresponse</tabTrigger>
|
<tabTrigger>alertresponse1</tabTrigger>
|
||||||
<description>alertresponse if status!=200</description>
|
<description>alertresponse if status!=200</description>
|
||||||
</snippet>
|
</snippet>
|
11
voussoir/alertresponse3.sublime-snippet
Normal file
11
voussoir/alertresponse3.sublime-snippet
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
if (response.meta.status != 200 || ! response.meta.json_ok)
|
||||||
|
{
|
||||||
|
alert(JSON.stringify(response));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
]]></content>
|
||||||
|
<tabTrigger>alertresponse3</tabTrigger>
|
||||||
|
<description>alertresponse if not 200 OR json_ok</description>
|
||||||
|
</snippet>
|
Loading…
Reference in a new issue