Skip to content
GitLab
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
87846ed6
Commit
87846ed6
authored
Dec 13, 2016
by
Floreal Cabanettes
Browse files
Trigger change on inputs on server browser files selection
parent
609ab6ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/js/jflow-wfform.js
View file @
87846ed6
...
...
@@ -705,6 +705,7 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
tid
=
parts
.
slice
(
2
,
parts
.
lenght
).
join
(
"
_
"
);
var
fillInput
=
function
(
files
)
{
$
(
"
#
"
+
tid
).
val
(
files
.
join
(
"
\n
"
));
$
(
"
#
"
+
tid
).
trigger
(
"
change
"
);
}
var
param_name
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
urlfile_btn_
"
,
""
);
JflowBrowser
.
exec
(
fillInput
,
params
[
param_name
].
type
.
startsWith
(
"
inputfiles
"
));
...
...
@@ -854,6 +855,7 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
}
}
});
$
(
"
#
"
+
tid
).
trigger
(
"
change
"
);
}
});
setClickServerBrowser
(
params
);
...
...
@@ -910,6 +912,9 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
var
original_data
=
handsontable_obj
.
handsontable
(
"
getData
"
);
handsontable_obj
.
handsontable
(
"
loadData
"
,
original_data
.
slice
(
0
,
original_data
.
length
-
1
)
.
concat
(
data
));
for
(
var
p
in
paired
)
{
$this
.
$element
.
trigger
(
"
change_
"
+
paired
[
p
]);
}
};
JflowBrowser
.
exec
(
fill_files
,
true
);
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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