HttpRequest
- *
- * @param request
- */
- private List|<\/p>|\xa0/g, "").length == 0)) ? "" : ckeditorData;
+ });
// validation will fail with spaces
var urlField = document.getElementById("url");
@@ -109,10 +38,8 @@
if ( ! $("#resourceItemForm").valid() )
return false;
- document.getElementById("instructionList").value = $("#instructionForm").serialize();
var formData = new FormData(document.getElementById("resourceItemForm"));
disableButtons();
- showBusy(instructionTargetDiv);
// after submit, it direct to itemlist.jsp,
// then refresh "basic tab" resource list and close this window.
$.ajax({ // create an AJAX call...
Index: lams_tool_larsrc/web/pages/authoring/parts/addfile.jsp
===================================================================
diff -u -r9dcc3e2d26b504f92d919f53f0d45dd4093a82a2 -raa971e902329c8ae01eae531db29bbc1a595f4ff
--- lams_tool_larsrc/web/pages/authoring/parts/addfile.jsp (.../addfile.jsp) (revision 9dcc3e2d26b504f92d919f53f0d45dd4093a82a2)
+++ lams_tool_larsrc/web/pages/authoring/parts/addfile.jsp (.../addfile.jsp) (revision aa971e902329c8ae01eae531db29bbc1a595f4ff)
@@ -21,7 +21,7 @@
});
$.validator.addMethod('requireFileCount', function (value, element, param) {
- return uppy.getFiles().length >= +param
+ return $('#hasFile').val() === 'true' || uppy.getFiles().length >= +param
}, '