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

prevent from serverURL errror

parent ada0e29b
......@@ -30,6 +30,7 @@
var ActiveWF = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, $.fn.activewf.defaults, options)
if (this.options.serverURL == "") { this.options.serverURL = $.fn.activewf.defaults.serverURL; }
this.reload()
}
......
......@@ -30,6 +30,7 @@
var AvailableWF = function (element, options) {
this.$element = $(element);
this.options = $.extend({}, $.fn.availablewf.defaults, options);
if (this.options.serverURL == "") { this.options.serverURL = $.fn.activewf.defaults.serverURL; }
this.reload();
}
......
......@@ -75,6 +75,7 @@
var WFForm = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, $.fn.wfform.defaults, options)
if (this.options.serverURL == "") { this.options.serverURL = $.fn.activewf.defaults.serverURL; }
}
WFForm.prototype.reset = function() {
......
......@@ -30,6 +30,7 @@
var WFStatus = function (element, options) {
this.$element = $(element);
this.options = $.extend({}, $.fn.wfstatus.defaults, options);
if (this.options.serverURL == "") { this.options.serverURL = $.fn.activewf.defaults.serverURL; }
}
WFStatus.prototype.reformatWorkflowJSON = function(data) {
......
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