Файловый менеджер - Редактировать - /home/lmsyaran/public_html/media/com_helpdeskpro/assets/js/helpdeskpro.min.js
Назад
HDP=window.HDP||{},HDP.jQuery=jQuery.noConflict(),function(e){HDP.addAttachment=function(){if(currentNumberAttachment>=maxAttachment)alert("You cannot add more attachment to ticket. Maximum Attachment per ticket is : "+maxAttachment);else{var t="#hdp_attachment_"+currentNumberAttachment;e(t).show(""),currentNumberAttachment++}},HDP.removeAttachment=function(){if(currentNumberAttachment>1){var t="#hdp_attachment_"+(currentNumberAttachment-1);e(t).hide(""),currentNumberAttachment--}else alert("There are no remaining attachment to remove")},HDP.showFields=function(t){var a=t.category_id.value;""==a&&(a=0);var r=fields[0];if(r)for(var i=0;i<r.length;i++)if(r[i]){var n="#field_"+r[i];e(n).show("")}if(currentCategory>0){var o=fields[currentCategory];if(o)for(i=0;i<o.length;i++)if(o[i]){n="#field_"+o[i];e(n).hide("")}}var c=fields[a];if(c)for(i=0;i<c.length;i++)if(c[i]){n="#field_"+c[i];e(n).show("")}currentCategory=a},HDP.showMessageBox=function(){currentStatus?(e("#tr_message_id").hide(),currentStatus=0):(e("#tr_message_id").show(),currentStatus=1)},HDP.changeTicketCategory=function(e){form=document.adminForm,form.new_value.value=e,form.task.value="ticket.update_category",form.submit()},HDP.applyTicketLabel=function(e){form=document.adminForm,form.new_value.value=e,form.task.value="ticket.apply_label",form.submit()},HDP.changeTicketPriority=function(e){form=document.adminForm,form.new_value.value=e,form.task.value="ticket.update_priority",form.submit()},HDP.changeTicketStatus=function(e){form=document.adminForm,form.new_value.value=e,form.task.value="ticket.update_status",form.submit()},HDP.ticketRating=function(e){form=document.adminForm,form.new_value.value=e,form.task.value="ticket.save_rating",form.submit()},HDP.ticketList=function(){"undefined"==typeof jItemId?location.href="index.php?option=com_helpdeskpro&view=tickets":location.href="index.php?option=com_helpdeskpro&view=tickets&Itemid="+jItemId},e(document).ready(function(){e(".edit_comment").on("click",function(t){t.preventDefault();var a=e(this).attr("id");e.fn.editable.defaults.mode="popup",e("#hdp_ticket_edit-text-"+a).editable({validate:function(t){if(""==e.trim(t))return"This value is required."},inputclass:"input-xxlarge",type:"textarea",placement:"top",success:function(t,r){e(".editable-pre-wrapped").css("white-space","pre-wrap");var i={task:"ticket.update_comment",message_id:a,new_message:r};e.ajax({type:"POST",url:hdpSiteUrl+"index.php?option=com_helpdeskpro",data:i,error:function(e,t,a){alert(t)}})}}).click(),t.stopPropagation()}),e(".remove_comment").click(function(){if(1==confirm("Do you want to delete the selected message ?")){var t=e(this).attr("id"),a={task:"ticket.remove_comment",message_id:t};e(this).attr("disabled","disabled"),e.ajax({type:"POST",url:hdpSiteUrl+"index.php?option=com_helpdeskpro",data:a,success:function(){e("#mesage-"+t).remove()},error:function(e,t,a){alert(t)}})}})})}(HDP.jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка