Commit 9112b964 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

use the span not the id

parent 84c03457
......@@ -196,8 +196,8 @@ jQuery.validator.addMethod("exclude_required", function(value, element, options)
$this = this;
// before serializing, all inputs have to be abled, otherwise they are not transmitted
$("a[class^=inputfile_]").each(function(){
var parts = $(this).attr("class").split("_"),
$("span[id^=inputfile_]").each(function(){
var parts = $(this).attr("id").split("_"),
tid = parts.slice(1, parts.lenght).join("_");
$("#"+tid).removeAttr('disabled');
});
......
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