summaryrefslogtreecommitdiffstats
path: root/pyserver/static/check_err.js
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-03-02 08:48:24 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-03-02 08:48:24 +0100
commit8eca0564a1dd6aac125086a244687b4813a1fd86 (patch)
tree462919b3c3a3ebe833b3b7215c5a9399e5da7f60 /pyserver/static/check_err.js
parent269b0985bd5830e27f6dedb04a05d76f52acb68c (diff)
parentadc657ebcd01ecc2cc5f110453ef00dffde2d5c0 (diff)
downloadpcitool-8eca0564a1dd6aac125086a244687b4813a1fd86.tar.gz
pcitool-8eca0564a1dd6aac125086a244687b4813a1fd86.tar.bz2
pcitool-8eca0564a1dd6aac125086a244687b4813a1fd86.tar.xz
pcitool-8eca0564a1dd6aac125086a244687b4813a1fd86.zip
1. Merge with http://ufo.kit.edu/ufo/log/csa/pcitool 359 revision
2. Move api_server to html server
Diffstat (limited to 'pyserver/static/check_err.js')
-rw-r--r--pyserver/static/check_err.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyserver/static/check_err.js b/pyserver/static/check_err.js
new file mode 100644
index 0000000..66519ea
--- /dev/null
+++ b/pyserver/static/check_err.js
@@ -0,0 +1,4 @@
+function checkError(json) {
+ if(json.status === 'error')
+ alert('Error: ' + json.description)
+}