Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
97f9dc96
Commit
97f9dc96
authored
Feb 29, 2016
by
Виталий Мурашко
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drag&drop fixes
parent
2e91a552
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
frontend/web/css/dropzone.css
frontend/web/css/dropzone.css
+16
-12
frontend/web/js/upload-files.js
frontend/web/js/upload-files.js
+3
-5
No files found.
frontend/web/css/dropzone.css
View file @
97f9dc96
...
@@ -175,13 +175,13 @@
...
@@ -175,13 +175,13 @@
.dropzone
{
.dropzone
{
min-height
:
150px
;
min-height
:
150px
;
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.3
);
/*
border: 2px solid rgba(0, 0, 0, 0.3);
background
:
white
;
background: white;
*/
padding
:
5
0px
10px
10px
10px
;
}
padding
:
1
0px
10px
10px
10px
;
}
.dropzone.dz-clickable
{
.dropzone.dz-clickable
{
cursor
:
pointer
;
}
cursor
:
pointer
;
}
.dropzone.dz-clickable
*
{
/*
.dropzone.dz-clickable * {
cursor
:
default
;
}
cursor: default; }
*/
.dropzone.dz-clickable
.dz-message
,
.dropzone.dz-clickable
.dz-message
*
{
.dropzone.dz-clickable
.dz-message
,
.dropzone.dz-clickable
.dz-message
*
{
cursor
:
pointer
;
}
cursor
:
pointer
;
}
.dropzone.dz-started
.dz-message
{
.dropzone.dz-started
.dz-message
{
...
@@ -393,8 +393,12 @@
...
@@ -393,8 +393,12 @@
z-index
:
100
;
z-index
:
100
;
}
}
.file_upload_bt
,
.file_upload_bt_cs
{
.file_upload_bt
,
.file_upload_bt_cs
{
bottom
:
14
0px
;
bottom
:
-8
0px
;
}
}
.dz-default
dz-message
{
.file_upload
,
.file_upload_cs
,
.file_upload_bt_cs
{
cursor
:
pointer
!important
;
z-index
:
200
;
}
.dz-default.dz-message
{
display
:
none
;
display
:
none
;
}
}
frontend/web/js/upload-files.js
View file @
97f9dc96
...
@@ -9,15 +9,13 @@ $(document).ready(function() {
...
@@ -9,15 +9,13 @@ $(document).ready(function() {
maxFiles
:
4
,
maxFiles
:
4
,
addRemoveLinks
:
true
,
addRemoveLinks
:
true
,
dictRemoveFile
:
'
Удалить
'
,
dictRemoveFile
:
'
Удалить
'
,
/*accept: function(file, done) {
$('#file_name').val(file.name);
done();
},*/
success
:
function
(
first
,
response
)
success
:
function
(
first
,
response
)
{
{
$
(
'
#files-zone
'
).
append
(
'
<input type="hidden" name="Bid[file][]" value="
'
+
response
.
filename
+
'
" />
'
);
$
(
'
#files-zone
'
).
append
(
'
<input type="hidden" name="Bid[file][]" value="
'
+
response
.
filename
+
'
" />
'
);
$
(
'
.file_drop
'
).
hide
();
$
(
'
.file_drop
'
).
hide
();
$
(
'
.file_drop_cs
'
).
hide
();
$
(
'
.file_drop_cs
'
).
hide
();
}
$
(
'
.file_upload_bt_cs
'
).
hide
();
$
(
'
.file_upload_bt
'
).
hide
();
},
};
};
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment