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
genotoul-bioinfo
jflow
Commits
d077c7c1
Commit
d077c7c1
authored
Oct 15, 2019
by
Celine Noirot
Browse files
#10
handle if only one file is given
parent
08d6bd43
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/js/jflow-wfform.js
View file @
d077c7c1
...
...
@@ -512,7 +512,6 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
}
}
});
$this
.
$element
.
off
(
"
validated.wfform
"
).
on
(
"
validated.wfform
"
,
function
()
{
$this
.
$element
.
off
(
"
uploaded.wfform
"
).
on
(
"
uploaded.wfform
"
,
function
()
{
...
...
@@ -548,6 +547,9 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
if
(
~
allfiles
.
indexOf
(
"
\n
"
)){
//BUG .split(/\n/) si deja array,
allfiles
=
allfiles
.
split
(
/
\n
/
);
}
else
{
allfiles
=
[
allfiles
];
}
var
newtidval
=
""
;
for
(
var
j
=
0
;
j
<
allfiles
.
length
;
j
++
)
{
...
...
@@ -791,7 +793,6 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
/*** Local handler (equivalent to type=browsefile)***/
var
set_local_file_handler
=
function
(
tid
)
{
var
size
=
$
(
"
#
"
+
tid
).
rules
()[
"
mparam
"
].
type
.
split
(
SIZE_LIMIT_SPLITER
)[
1
];
console
.
log
(
"
local file
"
);
$
(
"
#urlfile_btn_
"
+
tid
).
show
();
$
(
"
#
"
+
tid
).
on
(
"
focusin
"
,
function
(
event
)
{
$
(
this
).
prop
(
'
readonly
'
,
true
);
...
...
src/js/jflow.min.js
View file @
d077c7c1
This diff is collapsed.
Click to expand it.
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