Commit 9f693559 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

add a global waiting message + make the example looks beter

parent d4b65b34
......@@ -164,7 +164,8 @@
$("#available-workflows-list").availablewf();
$("#available-workflows-list").on('select.available', function(event, workflow) {
$('#setAndRunModalLabel').html(workflow["name"] + " <small>" + workflow["help"] + "</small>");
$('#setAndRunModal .modal-footer').show();
$('#setAndRunModalLabel').html(workflow["name"] + " <small>" + workflow["help"] + "</small>");
$('#setAndRunModalBody').wfform({
workflowClass: workflow["class"],
displayRunButton: false,
......@@ -173,6 +174,10 @@
$('#setAndRunModal').modal();
});
$('#setAndRunModalBody').on('uploading', function(event, running_wf) {
$('#setAndRunModal .modal-footer').hide();
});
$('#setAndRunModalBody').on('run', function(event, running_wf) {
$('#setAndRunModal').modal('hide');
$('#statusModalLabel').html(running_wf["name"] + " <small>" + running_wf["id"] + "</small>");
......
......@@ -540,12 +540,16 @@ jQuery.validator.addMethod("exclude_required", function(value, element, options)
'</form>',
'<div id="progress"></div>'].join('\n'),
progressTemplate: ['<dl class="dl-horizontal">',
'<dt>Start</dt>',
'<dd>sss</dd>',
'<dt>End</dt>',
'<dd>ddd</dd>',
'<dt>Elapsed time</dt>',
'<dd>dfdf</dd>',
'<div class="row-fluid"><div class="span1 offset3"><div class="inline floatingBarsG">',
'<div class="blockG" id="rotateG_01"></div>',
'<div class="blockG" id="rotateG_02"></div>',
'<div class="blockG" id="rotateG_03"></div>',
'<div class="blockG" id="rotateG_04"></div>',
'<div class="blockG" id="rotateG_05"></div>',
'<div class="blockG" id="rotateG_06"></div>',
'<div class="blockG" id="rotateG_07"></div>',
'<div class="blockG" id="rotateG_08"></div>',
'</div></div> <div class="span6">Please wait until all files have being loaded!</div></div>',
'<br/>',
'{{each(index, file) upload_file_status}}',
'<dt>${file.name}</dt>',
......
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