Code Review
/
src
/
app-framework-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Few hack for Post
[src/app-framework-demo.git]
/
afb-client
/
app
/
Frontend
/
widgets
/
FormInput
/
UploadFiles.js
diff --git
a/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js
b/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js
index
88669a9
..
8bc8eca
100644
(file)
--- 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");
// 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()
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()
@@
-61,7
+62,8
@@
function LoadFileSvc (scope, elem, posturl, files, thumbnailCB) {
};
xmlReq.onerror = function () {
};
xmlReq.onerror = function () {
- elem.addClass ("error fail");
+ elem.addClass ("error");
+ elem.removeClass ("success");
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()
@@
-70,7
+72,8
@@
function LoadFileSvc (scope, elem, posturl, files, thumbnailCB) {
};
xmlReq.onabort = function () {
};
xmlReq.onabort = function () {
- elem.addClass ("error abort");
+ elem.addClass ("error");
+ elem.removeClass ("success");
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()
var response ={
status : xmlReq.status,
headers: xmlReq.getAllResponseHeaders()