Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit ca9e292

Browse files
author
vikasrohit
committedJul 4, 2016
Issue#847, "Drag and Drop your zip file here" must remove from the "Preview Image" section
-- Fixed
1 parent a1b41ab commit ca9e292

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎app/directives/tc-fp-file-input/tc-fp-file-input.directive.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ import _ from 'lodash'
3131
if (scope.fieldId.indexOf('ZIP') > -1) {
3232
scope.filePath += _.join([userId, scope.fieldId, (new Date()).valueOf()], '-') + '.zip'
3333
}
34+
var dragAreaClasses = 'tc-fp-file-drag-drop'
3435
// set extensions
3536
if (scope.fieldId.indexOf('ZIP') > -1) {
3637
scope.extensions = '.zip'
3738
} else if (scope.fieldId.indexOf('DESIGN_COVER') > -1) {
3839
scope.extensions = '.png,.jpeg,.jpg,.bmp'
40+
dragAreaClasses += ' tc-fp-file-drag-drop-image'
3941
}
4042

4143
// set default services
@@ -59,7 +61,7 @@ import _ from 'lodash'
5961
input.setAttribute('data-fp-maxSize', scope.maxSize)
6062
input.setAttribute('data-fp-services', scope.fpServices)
6163
input.setAttribute('data-fp-button-class', 'tc-btn')
62-
input.setAttribute('data-fp-drag-class', 'tc-fp-file-drag-drop')
64+
input.setAttribute('data-fp-drag-class', dragAreaClasses)
6365
input.setAttribute('data-fp-multiple', false)
6466
input.setAttribute('data-fp-extensions', scope.extensions)
6567
input.setAttribute('data-fp-store-location', 's3')

‎assets/css/directives/tc-fp-file-input.directive.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@ tc-fp-file-input {
5757
left: 50%;
5858
transform: translateX(-50%)
5959
}
60+
61+
.tc-fp-file-drag-drop-image::after {
62+
content: 'Drag and Drop your PNG or JPG file here';
63+
}
6064
}

0 commit comments

Comments
 (0)
This repository has been archived.