From: Fulup Ar Foll Date: Mon, 21 Dec 2015 00:52:39 +0000 (+0100) Subject: Few hack for Post X-Git-Tag: blowfish_2.0.1~1^2~21 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-demo.git;a=commitdiff_plain;h=20853066884b9d3cddfa29c9741d625ba625c5f3 Few hack for Post --- diff --git a/afb-client/app/Frontend/pages/Sample/SampleModule.scss b/afb-client/app/Frontend/pages/Sample/SampleModule.scss index 2e54c53..7654424 100644 --- a/afb-client/app/Frontend/pages/Sample/SampleModule.scss +++ b/afb-client/app/Frontend/pages/Sample/SampleModule.scss @@ -24,7 +24,7 @@ height : 4.5rem; .sample-button { - float: left; + float: right; width: 5rem; }; 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()