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
46ff34e2
Commit
46ff34e2
authored
Sep 16, 2014
by
Jerome Mariette
Browse files
use handler to avoid multiple ajax queries
parent
a7a46624
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/example1.html
View file @
46ff34e2
...
...
@@ -204,24 +204,25 @@
$
(
'
#setAndRunModalBody
'
).
wfform
(
'
run
'
);
$
(
'
#back_workflow
'
).
hide
();
$
(
'
.status-panel
'
).
show
();
});
});
function
outputWFHandler
(
event
)
{
$
(
'
#statusModalBody
'
).
wfoutputs
({
workflowID
:
event
.
data
.
workflow_id
})
$
(
'
#back_workflow
'
).
show
();
$
(
'
.status-panel
'
).
hide
();
}
$
(
"
#active-workflows-list
"
).
activewf
();
$
(
"
#active-workflows-list
"
).
on
(
"
select.active
"
,
function
(
event
,
workflow
)
{
$
(
'
#statusModalLabel
'
).
html
(
workflow
[
"
name
"
]
+
"
<small>
"
+
workflow
[
"
id
"
]
+
"
</small>
"
);
$
(
'
#statusModalBody
'
).
wfstatus
({
workflowID
:
workflow
[
"
id
"
]
workflowID
:
workflow
.
id
});
$
(
'
#statusModal
'
).
modal
();
$
(
'
#back_workflow
'
).
hide
();
$
(
'
.status-panel
'
).
show
();
$
(
"
#output_workflow
"
).
click
(
function
()
{
$
(
'
#statusModalBody
'
).
wfoutputs
({
workflowID
:
workflow
.
id
})
$
(
'
#back_workflow
'
).
show
();
$
(
'
.status-panel
'
).
hide
();
});
$
(
"
#output_workflow
"
).
unbind
(
'
click
'
,
outputWFHandler
);
$
(
"
#output_workflow
"
).
bind
(
'
click
'
,
{
"
workflow_id
"
:
workflow
.
id
},
outputWFHandler
);
});
/**
...
...
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