summaryrefslogtreecommitdiffstats
path: root/afb-client/app/Frontend/widgets
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-21 01:52:39 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-21 01:52:39 +0100
commit20853066884b9d3cddfa29c9741d625ba625c5f3 (patch)
tree0432c69e2cbe399c249fe1821a80427e2c0dc196 /afb-client/app/Frontend/widgets
parent3b1b2ddc4692776318a135a66c1da8c5dee13f64 (diff)
Few hack for Post
Diffstat (limited to 'afb-client/app/Frontend/widgets')
-rw-r--r--afb-client/app/Frontend/widgets/FormInput/UploadFiles.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js b/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js
index 88669a9..8bc8eca 100644
--- a/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js
+++ b/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js
@@ -53,6 +53,7 @@ function LoadFileSvc (scope, elem, posturl, files, thumbnailCB) {
// Upload is finish let's notify controler callback
xmlReq.onload = function () {
elem.addClass ("success");
+ elem.removeClass ("error");
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()
@@ -61,7 +62,8 @@ function LoadFileSvc (scope, elem, posturl, files, thumbnailCB) {
};
xmlReq.onerror = function () {
- elem.addClass ("error fail");
+ elem.addClass ("error");
+ elem.removeClass ("success");
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()
@@ -70,7 +72,8 @@ function LoadFileSvc (scope, elem, posturl, files, thumbnailCB) {
};
xmlReq.onabort = function () {
- elem.addClass ("error abort");
+ elem.addClass ("error");
+ elem.removeClass ("success");
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()