芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/public/user/customs/js/ticket.min.js
"use strict";if($(".main-containt").find("#ticketCreate").length&&$("#ticketCreateForm").on("submit",(function(){$(".spinner").removeClass("d-none"),$("#ticketCreateSubmitBtn").attr("disabled",!0),$("#ticketCreateSubmitBtnText").text(submitButtonText)})),$(".main-containt").find("#ticketList").length&&$("#ticketStatus").on("change",(function(){$("#ticketSearchForm").trigger("submit")})),$(".main-containt").find("#ticketReply").length){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)}));var paginate=1;function loadMoreData(paginate){$.ajax({url:ticketReplyLoadUrl,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),$("#ticket-replies").append(data)}))}loadMoreData(paginate),$("#load-more").on("click",(function(){var page=$(this).data("paginate");loadMoreData(page),$(this).data("paginate",page+1)})),$("#ticketReplyForm").on("submit",(function(){$("#ticketReplyLoader").removeClass("d-none"),$("#ticketReplySubmitBtn").attr("disabled",!0),$("#ticketReplySubmitBtnText").text("")})),$("#ticketStatusChangeForm").on("submit",(function(){$("#ticketStatusChangeLoader").removeClass("d-none"),$("#ticketStatusChangeSubmitBtn").attr("disabled",!0),$("#ticketStatusChangeSubmitBtnText").text("")}))}