Commit 87f93b65 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

put the refresh button on the table

parent 74b45e3a
......@@ -83,7 +83,7 @@
var workflow_id = $(this).attr("id").split("activewf_btn_")[1];
$this.$element.trigger('select.active', workflow_by_id[workflow_id]);
});
$("#activewf_refresh_btn").click(function(){
$("[id^=activewf_refresh_]").click(function(){
$this.reload();
});
$("[id^=activewf_delete_]").click(function(){
......@@ -159,6 +159,9 @@
'<td>${workflow.end_time}</td>',
'<td>',
' <div class="btn-group">',
' <button type="button" id="activewf_refresh_${workflow.id}" class="btn btn-default btn-xs" aria-label="Left Align">',
' <span class="glyphicon glyphicon-refresh"></span>',
' </button>',
' <button type="button" id="activewf_delete_${workflow.id}" class="btn btn-default btn-xs" aria-label="Left Align">',
' <span class="glyphicon glyphicon-remove"></span>',
' </button>',
......@@ -166,8 +169,7 @@
'</td>',
'</tr>',
'{{/each}}',
'</table>',
'<p class="text-right"><button class="btn btn-default" id="activewf_refresh_btn" href="#"><span class="glyphicon glyphicon-refresh"></span> Refresh</button></p>'].join('\n'),
'</table>'].join('\n'),
metadataFilter: []
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment