Commit e98d00af authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 60d8d731
......@@ -52,7 +52,6 @@
timeout: 2000,
error: function (xhr, ajaxOptions, thrownError) {
var alert_message = ['<div class="alert alert-error">',
'<button class="close" data-dismiss="alert" type="button">×</button>',
'<strong>Error!</strong>',
'Jflow failed to connect to the specified server <strong>' + $this.options.serverURL + '</strong>',
'</div>'].join('\n');
......
......@@ -52,7 +52,6 @@
timeout: 2000,
error: function (xhr, ajaxOptions, thrownError) {
var alert_message = ['<div class="alert alert-error">',
'<button class="close" data-dismiss="alert" type="button">×</button>',
'<strong>Error!</strong>',
'Jflow failed to connect to the specified server <strong>' + $this.options.serverURL + '</strong>',
'</div>'].join('\n');
......
......@@ -126,7 +126,6 @@
timeout: 2000,
error: function (xhr, ajaxOptions, thrownError) {
var alert_message = ['<div class="alert alert-error">',
'<button class="close" data-dismiss="alert" type="button">×</button>',
'<strong>Error!</strong>',
'Jflow failed to connect to the specified server <strong>' + $this.options.serverURL + '</strong>',
'</div>'].join('\n');
......@@ -141,6 +140,8 @@
break;
}
}
// trigger an event to specify the workflow is loaded
$this.$element.trigger('loaded', workflow);
$this.$element.html("");
$.tmpl($this.options.template, {workflow: workflow, display_run_button: $this.options.displayRunButton,
display_reset_button: $this.options.displayResetButton, parameters: $this.options.parameters}).appendTo($this.$element);
......
......@@ -87,7 +87,6 @@
timeout: 2000,
error: function (xhr, ajaxOptions, thrownError) {
var alert_message = ['<div class="alert alert-error">',
'<button class="close" data-dismiss="alert" type="button">×</button>',
'<strong>Error!</strong>',
'Jflow failed to connect to the specified server <strong>' + $this.options.serverURL + '</strong>',
'</div>'].join('\n');
......
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