From 3b1b2ddc4692776318a135a66c1da8c5dee13f64 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sun, 20 Dec 2015 21:59:32 +0100 Subject: Fixed valid/invalid status for app --- .../app/Frontend/images/appli/isnotvalid.png | Bin 58558 -> 11124 bytes afb-client/app/Frontend/pages/Sample/Sample.html | 6 +-- .../app/Frontend/widgets/FormInput/UploadFiles.js | 42 +++++++--------- .../Frontend/widgets/FormInput/newjavascript.js | 55 --------------------- 4 files changed, 22 insertions(+), 81 deletions(-) delete mode 100644 afb-client/app/Frontend/widgets/FormInput/newjavascript.js (limited to 'afb-client') diff --git a/afb-client/app/Frontend/images/appli/isnotvalid.png b/afb-client/app/Frontend/images/appli/isnotvalid.png index ee40d2a..057c215 100644 Binary files a/afb-client/app/Frontend/images/appli/isnotvalid.png and b/afb-client/app/Frontend/images/appli/isnotvalid.png differ diff --git a/afb-client/app/Frontend/pages/Sample/Sample.html b/afb-client/app/Frontend/pages/Sample/Sample.html index 35523a9..7461d49 100644 --- a/afb-client/app/Frontend/pages/Sample/Sample.html +++ b/afb-client/app/Frontend/pages/Sample/Sample.html @@ -21,14 +21,14 @@ animationIn: slideInRight accept = [image] acceptable accept for upload --> + posturl="/api/post/upload-image" callback="ctrl.FileUploaded" accept="image" title="Change your Avatar"> - + - + diff --git a/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js b/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js index 65269f3..88669a9 100644 --- a/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js +++ b/afb-client/app/Frontend/widgets/FormInput/UploadFiles.js @@ -22,12 +22,11 @@ * https://stuk.github.io/jszip/documentation/howto/read_zip.html * http://onehungrymind.com/zip-parsing-jszip-angular/ * http://stackoverflow.com/questions/15341912/how-to-go-from-blob-to-arraybuffer + * + * Bugs: zip file sent even when flag as invalid */ - -function changeInput() { - console.log ('input imgClicked'); -} + (function() { 'use strict'; @@ -40,10 +39,6 @@ var tmpl = '", { - text : theFile.name - }); - $result.append($title); - var $fileContent = $("