diff --git a/CHANGELOG.md b/CHANGELOG.md index d16de687..07d67c61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +### Date: 2024-March-29 +### Release: v2024032901 + +#### Export Buttons Fixed + +The export buttons along with the individual submission refresh and download buttons and the bulk submission download buttons are now functioning as expected. + ### Date: 2024-February-06 ### Release: v2024020601 diff --git a/classes/v1migration/v1migration.php b/classes/v1migration/v1migration.php index f61484af..fc07fc03 100644 --- a/classes/v1migration/v1migration.php +++ b/classes/v1migration/v1migration.php @@ -550,7 +550,7 @@ private function log_success_migration_event($turnitintooltwoid, $course_id, $v1 } /** - * Get assignments for migrated data table. Called from ajax.php via turnitintooltwo_extra-2024020601.min.js. + * Get assignments for migrated data table. Called from ajax.php via turnitintooltwo_extra-2024032901.min.js. * * @global type $DB * @return array return array of assignments to display diff --git a/jquery/plugins.php b/jquery/plugins.php index c99f15f7..9f445f7d 100644 --- a/jquery/plugins.php +++ b/jquery/plugins.php @@ -19,9 +19,9 @@ $plugins = array( 'turnitintooltwo-dataTables' => array('files' => array('jquery.dataTables.js', 'jquery.dataTables.css')), 'turnitintooltwo-dataTables_plugins' => array('files' => array('jquery.dataTables.plugins.js')), - 'turnitintooltwo-turnitintooltwo' => array('files' => array('turnitintooltwo-2024020601.min.js')), - 'turnitintooltwo-turnitintooltwo_extra' => array('files' => array('turnitintooltwo_extra-2024020601.min.js')), - 'turnitintooltwo-turnitintooltwo_settings' => array('files' => array('turnitintooltwo_settings-2024020601.min.js')), + 'turnitintooltwo-turnitintooltwo' => array('files' => array('turnitintooltwo-2024032901.min.js')), + 'turnitintooltwo-turnitintooltwo_extra' => array('files' => array('turnitintooltwo_extra-2024032901.min.js')), + 'turnitintooltwo-turnitintooltwo_settings' => array('files' => array('turnitintooltwo_settings-2024032901.min.js')), 'turnitintooltwo-datatables_columnfilter' => array('files' => array('jquery.dataTables.columnFilter.js')), 'turnitintooltwo-cookie' => array('files' => array('jquery.cookie.js')), 'turnitintooltwo-colorbox' => array('files' => array('jquery.colorbox.js', 'colorbox.css')), diff --git a/jquery/turnitintooltwo-2024020601.min.js.map b/jquery/turnitintooltwo-2024020601.min.js.map deleted file mode 100644 index 2ddfcc5d..00000000 --- a/jquery/turnitintooltwo-2024020601.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["turnitintooltwo-2024020601.js"],"names":["$","window","on","show","hide","val","parent","attr","this","is","each","removeAttr","css","document","confirmstrname","data","confirmstr","M","str","turnitintooltwo","replace","confirmresult","confirm","ajax","type","url","dataType","action","sesskey","cfg","paper","part","assignment","success","location","href","hasClass","addClass","part_id","prop","split","student_id","message","submitnothingwarning","cookieseen","cookie","submitNothing","removeClass","length","slideUp","slideDown","html","expires","click","idStr","showPartDatesBoxes","event","node","target","isAscending","currentsort","sortby","sortColumn","closest","DataTable","order","draw","siblings","dataTable","dataTablesLang","sProcessing","sprocessing","sZeroRecords","szerorecords","sInfo","sinfo","sSearch","ssearch","sLengthMenu","slengthmenu","oPaginate","sNext","snext","sPrevious","sprevious","activeTab","text","tabs","active","table","fn","fnTables","fnAdjustColumnSizing","bProcessing","sAjaxSource","aoColumnDefs","bSortable","sClass","aTargets","oLanguage","fnServerData","sSource","aoData","fnCallback","role","result","error","response","membercheckerror","submissionsDataTableColumns","visibleCols","noOfColumns","notStudentView","showOrigReport","useGradeMark","multipleParts","i","push","sType","bVisible","iDataSort","partTables","refreshRequested","aoColumns","aLengthMenu","aaSorting","sDom","disableEditingText","getSubmissions","bStateSave","fnStateSave","oSettings","oData","localStorage","setItem","JSON","stringify","e","fnStateSaveParams","abVisCols","fnStateLoad","parse","getItem","fnStateLoadParams","fnDrawCallback","initialiseDigitalReceipt","initialiseDVLaunchers","initialiseRefreshRow","initialiseUploadBox","initialiseZipDownloads","initialiseCheckboxes","initialiseUnanoymiseForm","refreshPeermarkAssignments","refreshUserMessages","tii_table_functions","remove","after","zip_downloads","fnReloadAjax","fnStandingRedraw","wwwroot","colorbox","resize","width","height","iframe","opacity","className","transition","onLoad","lightBoxCloseButton","getLoadingGif","onCleanup","hideLoadingGif","refreshRubricSelect","mousedown","changerubricwarning","onClosed","closeButton","proceed","due_date","due_date_unix","moment","unix","dvtype","submission_id","resubmissiongradewarn","dvWindow","open","loading","loadingdv","body","submission","forms","submit","close","checkDVClosed","self","top","alert","postdate_warning","max_marks_warning","editable","defaults","mode","onblur","showbuttons","ajaxOptions","validate","value","indexOf","Math","floor","isNumeric","maxmarkserror","newValue","msg","field","partid","tabId","parentsUntil","$this","theDate","Date","format","viewformat","template","combodate","minuteStep","minYear","maxYear","getFullYear","smartDays","disableanonconfirm","editableContainer","export_option","current","not","scrolling","onComplete","ev","originalEvent","reload","enableEditingText","img","scrollTop","assignment_id","start","refresh_requested","total","async","eval","end","aaData","fnAddData","allrefreshed","k","v","submitVisibility","tiisubmissionsgeterror","rubricElementId","currentRubric","modulename","course","empty","options","optgroup","j","rubric","option","append","resetPeermarkSection","user_role","peermark_table","no_of_peermarks","peermarks_active","scope","identifier","inline","undefined","reason_text","reason","encodeURIComponent","status","userid","courseid","name","current_msg","user_id","colorBoxWidth","colorBoxHeight","refreshInboxRow","off","downloadZipFile","submission_ids","closebutton","print","initialiseHiddenZipDownloads","children","downloadOriginalFile","downloadtype","closed","setTimeout","user","responseText","complete","link","oTable","tr","rowindex","index","fnDeleteRow","row","download_button_warning","id","change","dataEl","post_date","buildUnixDate","anonalert","el","date","find","jQuery"],"mappings":"CAAA,SAAWA,GACPA,EAAEC,MAAM,EAAEC,GAAG,OAAQ,WACjBF,EAAE,cAAc,EAAEG,KAAK,EACvBH,EAAE,UAAU,EAAEI,KAAK,EAGnB,GAAIJ,EAAE,oBAAoB,EAAEK,IAAI,GAAK,EAAG,CACpCL,EAAE,oBAAoB,EAAEM,OAAO,EAAEA,OAAO,EAAEF,KAAK,CACnD,CAEA,GAAIJ,EAAE,oBAAoB,EAAEK,IAAI,GAAK,EAAG,CACpCL,EAAE,oBAAoB,EAAEM,OAAO,EAAE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CACfgE,MAAQ,GACZ,MAAO,GAAIhE,IAAM,QAAS,CACtBgE,MAAQ,GACZ,MAAO,GAAIhE,IAAM,UAAW,CACxBgE,MAAQ,GACZ,CACJ,CAAC,EAGD,OAAO3I,OAAO2I,KAAM,oBAAoB,EAAE1I,KAAK,CACnD,CACJ,CAAC,CACJ,GAAE4I,MAAM"} \ No newline at end of file diff --git a/jquery/turnitintooltwo-2024020601.js b/jquery/turnitintooltwo-2024032901.js similarity index 99% rename from jquery/turnitintooltwo-2024020601.js rename to jquery/turnitintooltwo-2024032901.js index 9588ba39..dedc8c51 100755 --- a/jquery/turnitintooltwo-2024020601.js +++ b/jquery/turnitintooltwo-2024032901.js @@ -1164,10 +1164,10 @@ // ZIP containing all files in original format. function initialiseZipDownloads(part_id) { // Unbind the event first to stop it being binded multiple times. - $('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').off("click"); + $('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').unbind("click"); // Open a spreadsheet or a zip file containing all the relevant data. - $('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').on(function () { + $('#tabs-' + part_id + ' .orig_zip_open, #tabs-' + part_id + ' .pdf_zip_open, #tabs-' + part_id + ' .xls_inbox_open').click(function () { var idStr = $(this).attr("id").split("_"); downloadZipFile(idStr[0] + "_" + idStr[1], idStr[2]); }); @@ -1239,9 +1239,9 @@ function initialiseHiddenZipDownloads(part_id) { // Unbind the event first to stop it being binded multiple times. - $('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').off("click"); + $('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').unbind("click"); // Seperate binder for hidden zip file link. - $('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').on(function () { + $('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').click(function () { var idStr = $(this).attr("id").split("_"); downloadZipFile(idStr[0] + "_" + idStr[1], part_id); return false; @@ -1255,9 +1255,9 @@ } // Unbind the event first to stop it being binded multiple times. - $(identifier).off("click"); + $(identifier).unbind("click"); - $(identifier).on(function () { + $(identifier).click(function () { $(this).hide(); $(this).siblings('.fa-spinner').css("display", "inline-block").addClass('fa-lg'); var idStr = $(this).parent().attr("id").split("_"); @@ -1273,9 +1273,9 @@ } // Unbind the event first to stop it being binded multiple times. - $(identifier).off("click"); + $(identifier).unbind("click"); - $(identifier).on(function () { + $(identifier).click(function () { var idStr = $(this).attr("id").split("_"); // Don't open OR DV if score is pending. if (!$(this).children('.score_colour').hasClass('score_colour_')) { @@ -1425,7 +1425,7 @@ $('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').removeAttr("title"); initialiseHiddenZipDownloads(part_id); } else { - $('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').off('click'); + $('#tabs-' + part_id + ' .mod_turnitintooltwo_origchecked_zip_open').unbind('click'); $('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').prop("disabled", true); $('#tabs-' + part_id + ' .mod_turnitintooltwo_zip_downloads button').prop("title", M.str.turnitintooltwo.download_button_warning); } diff --git a/jquery/turnitintooltwo-2024020601.min.js b/jquery/turnitintooltwo-2024032901.min.js similarity index 77% rename from jquery/turnitintooltwo-2024020601.min.js rename to jquery/turnitintooltwo-2024032901.min.js index 41e16ba9..b9557a4e 100644 --- a/jquery/turnitintooltwo-2024020601.min.js +++ b/jquery/turnitintooltwo-2024032901.min.js @@ -1 +1 @@ -(function($){$(window).on("load",function(){$(".js_required").show();$(".js_hide").hide();if($("#id_submissiontype").val()==1){$("#id_submissiontext").parent().parent().hide()}if($("#id_submissiontype").val()==2){$("#id_submissionfile").parent().parent().hide()}if($("#id_submissionagreement").length){$("#id_submitbutton").attr("disabled","disabled")}$("#id_submissionagreement").on("click",function(){if($(this).is(":checked")){$("#id_submissionagreement").each(function(){$("#id_submitbutton").removeAttr("disabled")})}else{$("#id_submissionagreement").each(function(){$("#id_submitbutton").attr("disabled","disabled")})}});$("div.mod_turnitintooltwo").parent().css("width","100%");$(document).on("click",".delete_paper",function(){var confirmstrname=$(this).data("confirm");var confirmstr=M.str.turnitintooltwo[confirmstrname].replace(/\\n/g,"\n");var confirmresult=confirm(confirmstr);if(confirmresult){$.ajax({type:"POST",url:"ajax.php",dataType:"html",data:{action:"deletesubmission",sesskey:M.cfg.sesskey,paper:$(this).data("paper"),part:$(this).data("part"),assignment:$(this).data("assignment")},success:function(){window.location.href=window.location.href}})}});$(document).on("click",".submit_nothing",function(){if($(this).hasClass("disabled")){return}$(this).addClass("disabled");var part_id=$(this).prop("id").split("_")[2];var student_id=$(this).prop("id").split("_")[3];var message=M.str.turnitintooltwo.submitnothingwarning.replace(/
/g,"\n").replace(/'/g,"'");var cookieseen=$.cookie("submitnothingaccept");if(cookieseen||confirm(message)){submitNothing(student_id,part_id)}else{$(this).removeClass("disabled")}return});$(document).on("change","#id_submissiontype",function(){if($("#id_submissiontype").val()==1){$("#id_submissiontext").parent().parent().hide();$("#id_submissionfile").parent().parent().show()}if($("#id_submissiontype").val()==2){$("#id_submissionfile").parent().parent().hide();$("#id_submissiontext").parent().parent().show()}});$(document).on("submit",".submission_form_container form",function(){if($("#id_submissiontitle").val().length>0){$("#general").slideUp("slow");$(".mod_turnitintooltwo .noticebox").slideUp("slow");$(".submission_form_container form").slideUp("slow");$("#submitting_loader").slideDown("slow");return true}else{return false}});if($(".toggle_summary").length>0){if(!$.cookie("show_summary_"+$("#assignment_id").html())){$.cookie("show_summary_"+$("#assignment_id").html(),true,{expires:30})}if($.cookie("show_summary_"+$("#assignment_id").html())=="true"){$(".hide_summary_"+$("#assignment_id").html()).show();$(".show_summary_"+$("#assignment_id").html()).hide();$(".introduction").slideDown()}else{$(".show_summary_"+$("#assignment_id").html()).show();$(".hide_summary_"+$("#assignment_id").html()).hide();$(".introduction").slideUp()}$(".toggle_summary i").click(function(){if($(this).hasClass("show_summary_"+$("#assignment_id").html())){$.cookie("show_summary_"+$("#assignment_id").html(),true,{expires:30});$(".show_summary_"+$("#assignment_id").html()).hide();$(".hide_summary_"+$("#assignment_id").html()).show();$(".introduction").slideDown()}else{$.cookie("show_summary_"+$("#assignment_id").html(),false,{expires:30});$(".show_summary_"+$("#assignment_id").html()).show();$(".hide_summary_"+$("#assignment_id").html()).hide();$(".introduction").slideUp()}})}if($(".toggle_peermarks").length>0){if(!$.cookie("show_peermarks_"+$("#assignment_id").html())){$.cookie("show_peermarks_"+$("#assignment_id").html(),true,{expires:30})}if($.cookie("show_peermarks_"+$("#assignment_id").html())=="true"){$(".hide_peermarks_"+$("#assignment_id").html()).show();$(".show_peermarks_"+$("#assignment_id").html()).hide();$(".peermark_assignments_container").slideDown()}else{$(".show_peermarks_"+$("#assignment_id").html()).show();$(".hide_peermarks_"+$("#assignment_id").html()).hide();$(".peermark_assignments_container").slideUp()}$(".toggle_peermarks i").click(function(){if($(this).hasClass("show_peermarks_"+$("#assignment_id").html())){$.cookie("show_peermarks_"+$("#assignment_id").html(),true,{expires:30});$(".show_peermarks_"+$("#assignment_id").html()).hide();$(".hide_peermarks_"+$("#assignment_id").html()).show();$(".peermark_assignments_container").slideDown()}else{$.cookie("show_peermarks_"+$("#assignment_id").html(),false,{expires:30});$(".show_peermarks_"+$("#assignment_id").html()).show();$(".hide_peermarks_"+$("#assignment_id").html()).hide();$(".peermark_assignments_container").slideUp()}})}$(document).on("click",".show_peermark_instructions, .hide_peermark_instructions",function(){var idStr=$(this).attr("id").split("_");if(idStr[0]=="show"){$("#show_peermark_instructions_"+idStr[3]).hide();$("#hide_peermark_instructions_"+idStr[3]).show();$("#peermark_instructions_"+idStr[3]).slideDown()}else{$("#show_peermark_instructions_"+idStr[3]).show();$("#hide_peermark_instructions_"+idStr[3]).hide();$("#peermark_instructions_"+idStr[3]).slideUp()}});showPartDatesBoxes();$(document).on("change","#id_numparts",function(){showPartDatesBoxes()});$(document).on("click",".splitter-lastname, .splitter-firstname",function(event){var node=$(event.target),isAscending=node.hasClass("sorting_asc"),currentsort="asc",sortby="desc",sortColumn=node.attr("data-col");if(!isAscending){currentsort="desc";sortby="asc"}node.closest(".mod_turnitintooltwo_submissions_data_table").DataTable().order([sortColumn,sortby]).draw();node.addClass("sorting_"+sortby).removeClass("sorting sorting_"+currentsort);node.parent().removeClass("sorting sorting_asc sorting_desc");node.siblings().removeClass("sorting_asc sorting_desc").addClass("sorting")});if($("#dataTable").length>0){$("#dataTable").dataTable()}if(typeof M.str.turnitintooltwo!=="undefined"){var dataTablesLang={sProcessing:''+M.str.turnitintooltwo.sprocessing+"",sZeroRecords:M.str.turnitintooltwo.szerorecords,sInfo:M.str.turnitintooltwo.sinfo,sSearch:M.str.turnitintooltwo.ssearch,sLengthMenu:M.str.turnitintooltwo.slengthmenu,oPaginate:{sNext:M.str.turnitintooltwo.snext,sPrevious:M.str.turnitintooltwo.sprevious}}}if($("#tabs").length>0){var activeTab=0;if($("#tab_position").length>0){activeTab=$("#tab_position").text()}$("#tabs").tabs({active:activeTab,show:function(){var table=$.fn.dataTable.fnTables(true);if(table.length>0){$(table).dataTable().fnAdjustColumnSizing()}}})}if($(".enrolledMembers").length>0){$(".enrolledMembers").dataTable({bProcessing:true,sAjaxSource:"ajax.php",aoColumnDefs:[{bSortable:false,sClass:"centered_cell",aTargets:[0]},{sClass:"left",aTargets:[1]}],oLanguage:dataTablesLang,fnServerData:function(sSource,aoData,fnCallback){$.ajax({dataType:"json",type:"POST",url:sSource,data:{action:"get_members",assignment:$("#assignment_id").html(),role:$("#user_role").html()},success:function(result){fnCallback(result)},error:function(data,response){$(".dataTables_processing").attr("style","visibility: hidden");$(".dataTables_empty").html(M.str.turnitintooltwo.membercheckerror)}})}})}var submissionsDataTableColumns=[];var visibleCols=[];var noOfColumns=$("table.mod_turnitintooltwo_submissions_data_table th").length/$("table.mod_turnitintooltwo_submissions_data_table").length;var notStudentView=$("table.mod_turnitintooltwo_submissions_data_table th.sorting_name").length>0?true:false;var showOrigReport=$("table.mod_turnitintooltwo_submissions_data_table th.creport").length>0?true:false;var useGradeMark=$("table.mod_turnitintooltwo_submissions_data_table th.cgrade").length>0?true:false;var multipleParts=$("table.mod_turnitintooltwo_submissions_data_table th.coverallgrade").length>0?true:false;if(notStudentView){for(var i=0;i=9&&!showOrigReport&&!useGradeMark||i>=11&&(!showOrigReport&&useGradeMark||showOrigReport&&!useGradeMark)||i>=13&&showOrigReport&&useGradeMark)){submissionsDataTableColumns.push({sClass:"center",bSortable:false});visibleCols.push(true)}else if(i==0||i==4||i==7||i==9&&showOrigReport||(i==9&&!showOrigReport||i==11&&useGradeMark)){submissionsDataTableColumns.push({bVisible:false});visibleCols.push(false)}}}else{for(var i=0;i=8&&!showOrigReport&&!useGradeMark||i>=10&&(!showOrigReport&&useGradeMark||showOrigReport&&!useGradeMark)||i>=12&&showOrigReport&&useGradeMark)){submissionsDataTableColumns.push({sClass:"center",bSortable:false});visibleCols.push(true)}else if(i==0||i==3||i==6||i==8&&showOrigReport||(i==8&&!showOrigReport||i==10&&useGradeMark)){submissionsDataTableColumns.push({bVisible:false});visibleCols.push(false)}}}var partTables=[];var refreshRequested=[];$("table.mod_turnitintooltwo_submissions_data_table").each(function(){var part_id=$(this).attr("id");refreshRequested[part_id]=0;partTables[part_id]=$("table#"+part_id).dataTable({bProcessing:true,aoColumns:submissionsDataTableColumns,aLengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],aaSorting:[[2,"asc"],[4,"asc"]],sAjaxSource:"ajax.php",oLanguage:dataTablesLang,sDom:'r<"mod_turnitintooltwo_listbar-container"<"top mod_turnitintooltwo_listbar clearfix"lf>><"dt_pagination clearfix"pi>t<"bottom"><"dt_pagination clearfix"pi>',fnServerData:function(sSource,aoData,fnCallback){$.ajax({dataType:"json",type:"POST",url:sSource,data:{action:"initialise_redraw"},success:function(result){disableEditingText(part_id);fnCallback(result);$("#"+part_id+"_processing").attr("style","visibility: visible");getSubmissions(partTables[part_id],$("#assignment_id").html(),part_id,0,refreshRequested,0)}})},bStateSave:true,fnStateSave:function(oSettings,oData){try{localStorage.setItem(part_id+"DataTables",JSON.stringify(oData))}catch(e){}},fnStateSaveParams:function(oSettings,oData){oData.abVisCols=visibleCols},fnStateLoad:function(oSettings){try{return JSON.parse(localStorage.getItem(part_id+"DataTables"))}catch(e){}},fnStateLoadParams:function(oSettings,oData){oData.abVisCols=visibleCols},fnDrawCallback:function(oSettings){initialiseDigitalReceipt();initialiseDVLaunchers("all",0,part_id,0);initialiseRefreshRow("all",0,part_id,0);initialiseUploadBox("all",0,0,0);initialiseZipDownloads(part_id);initialiseCheckboxes(0,part_id);initialiseUnanoymiseForm("all",0,0)}})});$("table.mod_turnitintooltwo_submissions_data_table").each(function(){var part_id=$(this).attr("id");refreshPeermarkAssignments(part_id,0)});if($(".messages_amount").length>0){refreshUserMessages()}$(".tii_table_functions").each(function(){var part_id=$(this).attr("id").split("tii_table_functions_")[1];var tii_table_functions=$("#tii_table_functions_"+part_id).html();$("#tii_table_functions_"+part_id).remove();$("#"+part_id+"_length").after(tii_table_functions);$(".mod_turnitintooltwo_messages_inbox").show();$("#refresh_"+part_id).show();$("#refreshing_"+part_id).hide()});var zip_downloads=$(".mod_turnitintooltwo_zip_downloads");$.each(zip_downloads,function(){var part_id=$(this).attr("id").split("_")[1];$(this).remove();$("#"+part_id+"_length").after($(this))});if($("#user_role").html()=="Learner"){$(".dataTables_length, .dataTables_filter, .dt_pagination").hide()}$(".mod_turnitintooltwo_refresh_link").click(function(){if($(this).is(":visible")){$(".mod_turnitintooltwo_refresh_link").hide();$(".mod_turnitintooltwo_refreshing_link").show();$("table.mod_turnitintooltwo_submissions_data_table").each(function(){refreshRequested[$(this).attr("id")]=1;partTables[$(this).attr("id")].fnReloadAjax();partTables[$(this).attr("id")].fnStandingRedraw()})}return false});if($("#turnitin_sync_all_grades").length>0){$(".turnitin_sync_grades").click(function(){$(".turnitin_sync_grades").hide();$(".turnitin_syncing_grades").show();$.ajax({type:"POST",url:M.cfg.wwwroot+"/mod/turnitintooltwo/ajax.php",dataType:"json",data:{action:"sync_all_submissions",assignment:$("#turnitin_sync_all_grades").data("turnitintooltwoid"),sesskey:M.cfg.sesskey},success:function(data){$(".turnitin_sync_grades").show();$(".turnitin_syncing_grades").hide()}})})}if($(".submission_failure_msg").length>0){window.parent.$(".upload_box").colorbox.resize({width:"800px",height:"240px"})}$(".enrol_link").click(function(){$("#enrolling_error").hide();$(".enrol_link").hide();$(".enrolling_container").show();$.ajax({type:"POST",url:"ajax.php",dataType:"html",data:{action:"enrol_all_students",assignment:$("#assignment_id").html(),sesskey:M.cfg.sesskey},success:function(data){window.location.href=window.location.href},error:function(data,response){$(".enrol_link").show();$(".enrolling_container").hide();$("#enrolling_error").show()}})});if($(".mod_turnitintooltwo_rubric_manager_launch").length>0){$(".mod_turnitintooltwo_rubric_manager_launch").colorbox({iframe:true,width:"832px",height:"682px",opacity:"0.7",className:"rubric_manager",transition:"none",onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){hideLoadingGif();if($(this).attr("id")!="rubric_manager_inbox_launch"){refreshRubricSelect()}$("#tii_close_bar").remove()}})}if($(".mod_turnitintooltwo_rubric_view_launch").length>0){$(".mod_turnitintooltwo_rubric_view_launch").colorbox({iframe:true,width:"832px",height:"682px",opacity:"0.7",className:"rubric_view",transition:"none",onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()}})}$("#id_rubric, #id_plagiarism_rubric").mousedown(function(){if($('input[name="instance"]').val()!=""&&$('input[name="rubric_warning_seen"]').val()!="Y"){if(confirm(M.str.turnitintooltwo.changerubricwarning)){$('input[name="rubric_warning_seen"]').val("Y")}}});if($(".mod_turnitintooltwo_quickmark_manager_launch").length>0){$(".mod_turnitintooltwo_quickmark_manager_launch").colorbox({iframe:true,width:"770px",height:"600px",opacity:"0.7",className:"quickmark_manager",transition:"none",onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()}})}if($(".tii_peermark_manager_launch").length>0){$(".tii_peermark_manager_launch").colorbox({iframe:true,width:"915px",height:"772px",opacity:"0.7",className:"peermark_manager",transition:"none",onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()},onClosed:function(){var idStr=$(this).attr("id").split("_");refreshPeermarkAssignments(idStr[2],1)}})}if($(".tii_peermark_reviews_launch").length>0){$(".tii_peermark_reviews_launch").colorbox({iframe:true,width:"915px",height:"772px",opacity:"0.7",className:"peermark_reviews",transition:"none",onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()}})}if($(".mod_turnitintooltwo_messages_inbox").length>0){$(".mod_turnitintooltwo_messages_inbox").colorbox({iframe:true,width:"772px",height:"772px",opacity:"0.7",className:"messages",transition:"none",closeButton:true,onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()}})}if($(".mod_turnitintooltwo_nonsubmitters_link").length>0){$(".mod_turnitintooltwo_nonsubmitters_link").colorbox({iframe:true,width:"740px",height:"540px",opacity:"0.7",className:"nonsubmitters",transition:"none",closeButton:true,onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()}})}if($(".mod_turnitintooltwo_nonsubmittersformsuccessmsg").length>0){hideLoadingGif();window.parent.$(".nonsubmitters").colorbox.resize({width:"740px",height:"120px"})}if($(".mod_turnitintooltwo_rubric_view_launch").length>0){$(".mod_turnitintooltwo_rubric_view_launch").colorbox({iframe:true,width:"832px",height:"682px",opacity:"0.7",className:"rubric_view",transition:"none",onLoad:function(){lightBoxCloseButton();getLoadingGif()},onCleanup:function(){$("#tii_close_bar").remove();hideLoadingGif()}})}$(document).on("click",".default_open, .origreport_open, .grademark_open",function(){var proceed=true;var idStr=$(this).attr("id").split("_");var due_date=$("#date_due_"+idStr[2]).html();var due_date_unix=moment(due_date).unix();var dvtype=idStr[0];var submission_id=idStr[1];var part_id=idStr[2];if(due_date_unix>moment().unix()){if($(this).hasClass("graded_warning")){if(!confirm(M.str.turnitintooltwo.resubmissiongradewarn)){proceed=false}}}if(proceed){dvWindow=window.open("","_blank");var loading='
';loading+='';loading+='

'+M.str.turnitintooltwo.loadingdv+"

";loading+="
";$(dvWindow.document.body).html(loading);$.ajax({type:"POST",url:M.cfg.wwwroot+"/mod/turnitintooltwo/ajax.php",dataType:"json",data:{action:dvtype,submission:submission_id,assignment:$("#assignment_id").html()},success:function(data){$(dvWindow.document.body).html(loading+data);dvWindow.document.forms[0].submit();dvWindow.document.close();checkDVClosed(part_id)}})}});if($("#id_rubric").length>0){refreshRubricSelect()}if(self!=top&&$("#view_context").html()=="box"){$("html").css("background","none")}else if(self!=top&&$("#view_context").html()=="box_solid"){$("html").css("background","#FFF")}$(".editable_postdue").on("click",function(){if($(this).data("anon")==1){alert(M.str.turnitintooltwo.postdate_warning)}});$(".max_marks_warning").on("click",function(){alert(M.str.turnitintooltwo.max_marks_warning)});if($(".editable_text").length>0){$.fn.editable.defaults.mode="inline";$.fn.editable.defaults.url="ajax.php";$.fn.editable.defaults.onblur="submit";$.fn.editable.defaults.showbuttons=false;$.fn.editable.defaults.ajaxOptions={dataType:"json"};$(".editable_text").editable({validate:function(value){if($(this).attr("id").indexOf("marks_")>=0&&(Math.floor(value)!=value||!$.isNumeric(value)||value.indexOf(".")!=-1)){return M.str.turnitintooltwo.maxmarkserror}},success:function(response,newValue){if(!response.success){return response.msg}else if(response.field=="maxmarks"){$("#refresh_"+response.partid).click();$.ajax({type:"POST",url:M.cfg.wwwroot+"/mod/turnitintooltwo/ajax.php",dataType:"json",data:{action:"sync_all_submissions",assignment:$("#assignment_id").html(),sesskey:M.cfg.sesskey}})}else if(response.field=="partname"){var tabId=$(this).parentsUntil(".ui-tabs-panel").parent().attr("aria-labelledby");$("#"+tabId).text(newValue)}}});if($("#export_options").hasClass("tii_export_options_hide")){$("#export_options").hide();$(".export_data").html('--')}$(".editable_postdue").on("click",function(){var $this=$(this);$.ajax({type:"POST",url:"ajax.php",dataType:"json",data:{action:"check_anon",part:$this.data("pk"),assignment:$("#assignment_id").html()},success:function(data){$this.data("anon",data["anon"]);$this.data("unanon",data["unanon"]);$this.data("submitted",data["submitted"])}})});var theDate=new Date;$(".editable_date").editable({type:"combodate",format:"YYYY-MM-DD HH:mm",viewformat:"D MMM YYYY, HH:mm",template:"D MMM YYYY HH:mm",combodate:{minuteStep:1,minYear:2e3,maxYear:theDate.getFullYear()+2,smartDays:true},validate:function(value){if(value.format("X")--')}else{$(".empty-dash").remove();$("#export_options").show()}}}});$(".editable_date").click(function(){if($(this).hasClass("editable-disabled")){return false}});$(".editable_date, .editable_text").on("shown",function(e,editable){var current=$(this).prop("id");$(".editable_date, .editable_text").not("#"+current).editable("disable");$(".submit_nothing").addClass("disabled")});$(".editable_date, .editable_text").on("hidden",function(){var current=$(this).prop("id");$(".editable_date, .editable_text").not("#"+current).editable("enable");$(".submit_nothing").removeClass("disabled")})}$("#inbox_form form, .launch_form form").submit();if($(".turnitin_eula_link").length>0){$(".turnitin_eula_link").colorbox({iframe:true,width:"766px",height:"596px",opacity:"0.7",className:"eula_view",scrolling:"false",onLoad:function(){getLoadingGif()},onComplete:function(){$(window).on("message",function(ev){var message=typeof ev.data==="undefined"?ev.originalEvent.data:ev.data;if(message=="turnitin_eula_declined"||message=="turnitin_eula_accepted"){$.ajax({type:"POST",url:M.cfg.wwwroot+"/mod/turnitintooltwo/ajax.php",dataType:"json",data:{action:"acceptuseragreement",message:message,sesskey:M.cfg.sesskey},success:function(data){window.location.reload()},error:function(data){window.location.reload()}})}})},onCleanup:function(){hideLoadingGif()}})}function enableEditingText(part_id){$("#tabs-"+part_id+" .editable_date, #tabs-"+part_id+" .editable_text").editable("enable")}function disableEditingText(part_id){$("#tabs-"+part_id+" .editable_date, #tabs-"+part_id+" .editable_text").editable("disable")}function getLoadingGif(){var img='
';$("#cboxOverlay").after(img);var top=$(window).scrollTop()+$(window).height()/2;$(".loading_gif").css("top",top+"px")}function hideLoadingGif(){$(".loading_gif").remove()}function getSubmissions(table,assignment_id,part_id,start,refresh_requested,total){$.ajax({dataType:"json",type:"POST",url:"ajax.php",async:true,data:{action:"get_submissions",assignment:assignment_id,part:part_id,start:start,refresh_requested:refresh_requested[part_id],sesskey:M.cfg.sesskey,total:total},success:function(result){eval(result);start=result.end;if(result.aaData.length>0){table.fnAddData(result.aaData)}if(result.end$(".mod_turnitintooltwo_submissions_data_table .refresh_row").length){$(".mod_turnitintooltwo_nonsubmitters_link").attr("style","display: block")}}},error:function(data,response){$("#"+part_id+"_processing").attr("style","visibility: hidden");$(".dataTables_empty").html(M.str.turnitintooltwo.tiisubmissionsgeterror)}})}function submitVisibility(){if($(".upload_box").data("user-type")==1||$(".upload_box").data("eula")==1){$(".upload_box").show()}else{$(".upload_box").hide()}}function refreshRubricSelect(){var rubricElementId=$("#id_rubric").length?"#id_rubric":"#id_plagiarism_rubric";var currentRubric=$(rubricElementId).val();$.ajax({dataType:"json",type:"POST",url:"../mod/turnitintooltwo/ajax.php",data:{action:"refresh_rubric_select",assignment:$('input[name="instance"]').val(),modulename:$('input[name="modulename"]').val(),course:$('input[name="course"]').val()},success:function(data){$($(rubricElementId)).empty();var options=data;$.each(options,function(i,val){if(!$.isNumeric(i)&&i!==""){var optgroup=$("");optgroup.attr("label",i);$.each(val,function(j,rubric){var option=$("");option.val(j);option.text(rubric);optgroup.append(option)});$(rubricElementId).append(optgroup)}else{$($(rubricElementId)).append($("