Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel CAZAL
co2
Commits
7e09d15c
Commit
7e09d15c
authored
Jan 25, 2019
by
Clément Damiens
Browse files
fix move in folder
parent
1386bb02
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/gallery/index.js
View file @
7e09d15c
...
...
@@ -91,12 +91,13 @@ function getFileItem(k,v, edit){
titleDoc
=
""
;
if
(
notNull
(
v
.
name
))
titleDoc
=
v
.
name
;
var
htmlThumbail
=
'
<li class="content_file
'
+
k
+
'
col-sm-12 col-md-12 col-xs-12 no-padding" data-cat="1" id="
'
+
v
.
id
+
'
">
'
+
idDoc
=
v
.
_id
.
$id
;
var
htmlThumbail
=
'
<li class="content_file
'
+
k
+
'
col-sm-12 col-md-12 col-xs-12 no-padding" data-cat="1" id="
'
+
idDoc
+
'
">
'
+
'
<div class="portfolio-item">
'
;
if
(
edit
){
htmlThumbail
+=
'
<div class="checkbox-content pull-left">
'
+
'
<label>
'
+
'
<input type="checkbox" class="checkPhoto checkbox-info" data-value="
'
+
v
.
id
+
'
">
'
+
'
<input type="checkbox" class="checkPhoto checkbox-info" data-value="
'
+
id
Doc
+
'
">
'
+
'
<span class="cr"><i class="cr-icon fa fa-check"></i></span>
'
+
'
</label>
'
+
'
</div>
'
;
...
...
@@ -109,7 +110,7 @@ function getFileItem(k,v, edit){
'
<i class="fa fa-upload"></i>
'
+
'
</a>
'
;
if
(
edit
){
htmlThumbail
+=
'
<a href="javascript:;" onclick="updateDocument(
\'
'
+
v
.
id
+
'
\'
,
\'
'
+
titleDoc
+
'
\'
)">
'
+
htmlThumbail
+=
'
<a href="javascript:;" onclick="updateDocument(
\'
'
+
id
Doc
+
'
\'
,
\'
'
+
titleDoc
+
'
\'
)">
'
+
'
<i class="fa fa-pencil"></i>
'
+
'
</a>
'
;
}
...
...
Write
Preview
Supports
Markdown
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