Closed yunjiali closed 11 years ago
put the following code before ajaxSubmit & the brackets are missing if($("#duration").val() == "" && $("#duration_span").val() != "") { $("#duration").val(stringToMilisec($("#duration_span").val())); }
put the following code before ajaxSubmit & the brackets are missing if($("#duration").val() == "" && $("#duration_span").val() != "") { $("#duration").val(stringToMilisec($("#duration_span").val())); }