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

clean code

parent 978e991f
......@@ -30,7 +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; }
if (this.options.serverURL == "") { this.options.serverURL = $.fn.availablewf.defaults.serverURL; }
this.reload();
}
......
......@@ -148,7 +148,7 @@ jQuery.validator.addMethod("exclude_required", function(value, element, options)
this.$element = $(element)
this.options = $.extend({}, $.fn.wfform.defaults, options);
this.uploadfiles = {};
if (this.options.serverURL == "") { this.options.serverURL = $.fn.activewf.defaults.serverURL; }
if (this.options.serverURL == "") { this.options.serverURL = $.fn.wfform.defaults.serverURL; }
}
WFForm.prototype.reset = function() {
......@@ -426,7 +426,7 @@ jQuery.validator.addMethod("exclude_required", function(value, element, options)
/* WFForm PLUGIN DEFINITION
* ========================== */
var old = $.fn.activewf
var old = $.fn.wfform
$.fn.wfform = function (option) {
return this.each(function () {
......
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