芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/public/user/customs/js/dispute.min.js
"use strict";if($(".main-containt").find("#disputeCreate").length&&$("#disputeCreateForm").on("submit",(function(){$(".spinner").removeClass("d-none"),$("#disputeSvgIcon").addClass("d-none"),$("#disputeCreateSubmitBtn").attr("disabled",!0),$("#disputeCreateSubmitBtnText").text(submitButtonText)})),$(".main-containt").find("#disputeDiscussion").length){var paginate=1;function loadMoreData(paginate){$.ajax({url:disputeReplyLoadUrl,type:"get",datatype:"html",data:{page:paginate},beforeSend:function(){$("#load-more").text(loadingText)}}).done((function(data){if(0==data.length)return $(".invisible").removeClass("invisible"),$("#load-more").hide(),!1;$("#load-more").text(loadMoreText),$("#dispute-replies").append(data)}))}loadMoreData(paginate),$("#load-more").on("click",(function(){var page=$(this).data("paginate");loadMoreData(page),$(this).data("paginate",page+1)})),$("#disputeStatusChangeForm").on("submit",(function(){$("#disputeStatusChangeLoader").removeClass("d-none"),$("#disputeStatusChangeSubmitBtn").attr("disabled",!0),$("#disputeStatusChangeSubmitBtnText").text("")})),$("#disputeReplyForm").on("submit",(function(){$("#disputeReply").removeClass("d-none"),$("#disputeReplySubmitBtn").attr("disabled",!0),$("#disputeReplySubmitBtnText").text("")}));const actualBtn=$("#file");$(document).on("change","#file",(function(){let fileExtension=actualBtn.val().replace(/^.*\./,""),fileInput=actualBtn[0];return extensions.includes(fileExtension)?($(".file-error").text(""),!0):(fileInput.value="",$(".file-error").addClass("error").text(extensionsValidationMessage),$("#fileSpan").fadeIn("slow").delay(2e3).fadeOut("slow"),!1)}))}$(".main-containt").find("#disputeIndex").length&&$((function(){var sDate,eDate;$("#daterange-btn").daterangepicker({ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(6,"days"),moment()],"Last 30 Days":[moment().subtract(29,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]},startDate:moment().subtract(29,"days"),endDate:moment()},(function(start,end){sDate=moment(start,"MMMM D, YYYY").format("DD-MM-YYYY"),$("#startfrom").val(sDate),eDate=moment(end,"MMMM D, YYYY").format("DD-MM-YYYY"),$("#endto").val(eDate),$("#daterange-btn p").html(sDate+" - "+eDate)})),""==startDate?$("#daterange-btn p").html(dateRangePickerText):$("#daterange-btn p").html(startDate+" - "+endDate),$(document).ready((function(){let status=$("#status").val();""==startDate&&"all"==status||$(".filter-panel").css("display","block"),$(".fil-btn").on("click",(function(){$(this).find("img").toggle(),$(".filter-panel").slideToggle(300)}))}))}));