Add alertresponse3.

This commit is contained in:
voussoir 2021-10-26 19:33:36 -07:00
parent a2f5024fc1
commit 7471fdf55e
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 12 additions and 1 deletions

View file

@ -6,6 +6,6 @@ if (response.meta.status !== 200)
return;
}
]]></content>
<tabTrigger>alertresponse</tabTrigger>
<tabTrigger>alertresponse1</tabTrigger>
<description>alertresponse if status!=200</description>
</snippet>

View 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>