Index: lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js =================================================================== diff -u -r1be2d4401dbae2128ff03c18aa70fdf4237482d8 -rad0928474bd103c77f40f38836a3eb015b193d31 --- lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js (.../rsrcresourceitem.js) (revision 1be2d4401dbae2128ff03c18aa70fdf4237482d8) +++ lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js (.../rsrcresourceitem.js) (revision ad0928474bd103c77f40f38836a3eb015b193d31) @@ -14,20 +14,13 @@ }); } function removeItemAttachment(idx){ - var url= removeItemAttachmentUrl; - var reqIDVar = new Date(); - var param = "reqID="+reqIDVar.getTime(); removeItemAttachmentLoading(); - var myAjax = new Ajax.Updater( - itemAttachmentTargetDiv, - url, - { - method:'post', - parameters:param, - onComplete:removeItemAttachmentComplete, - evalScripts:true - } - ); + $("#" + itemAttachmentTargetDiv).load( + removeItemAttachmentUrl, + { + reqID: new Date() + } + ); } function addInstruction(){ var param = $("#instructionForm").serialize();