Commit 647145ea authored by Jerome Mariette's avatar Jerome Mariette
Browse files

add a render function

parent aaabb1b4
......@@ -208,11 +208,14 @@
});
$("#rerun_workflow").click(function(){ $('#statusModalBody').wfstatus('rerun'); });
$("#reset_workflow").click(function(){ $('#setAndRunModalBody').wfform('reset'); });
$("#back_workflow").click(function(){
$('#statusModalBody').wfstatus('reload');
$('#setAndRunModal').on('shown.bs.modal', function() {
$('#setAndRunModalBody').wfform('render');
});
$("#back_workflow").click(function(){
$('#statusModalBody').wfstatus('reload');
$('#back_workflow').hide();
$('.status-panel').show();
});
});
$("#run_workflow").click(function(){
$('#setAndRunModalBody').wfform('run');
$('#back_workflow').hide();
......
......@@ -342,6 +342,12 @@ jQuery.validator.addMethod("mparam", function(value, element, params) {
}
}
WFForm.prototype.render = function() {
$("[id^=handsontable_]").each(function(){
$(this).handsontable("render");
});
}
WFForm.prototype.load = function() {
var $this = this,
waiting_animation = ['<div class="container-fluid"><div class="row"><div class="col-md-1 col-md-offset-2"><div class="inline floatingBarsG">',
......
Markdown is supported
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