Commit 0ddf155f by swdanielli

fixing bug in add resource

parent 3de86440
...@@ -219,7 +219,7 @@ function RecommenderXBlock(runtime, element) { ...@@ -219,7 +219,7 @@ function RecommenderXBlock(runtime, element) {
if (result.responseText.indexOf(uploadFileError[key]) == 0) { if (result.responseText.indexOf(uploadFileError[key]) == 0) {
alert(uploadFileErrorText[uploadFileError[key]]); alert(uploadFileErrorText[uploadFileError[key]]);
$(formDiv).find("input[name='file']").val(''); $(formDiv).find("input[name='file']").val('');
$('.edit_submit').attr('disabled', true); $('.add_submit').attr('disabled', true);
return; return;
} }
} }
......
Markdown is supported
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