Server IP : 150.95.80.236 / Your IP : 3.137.223.255 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/sc.pcu.in.th/demo15/dist/assets/js/custom/pages/projects/settings/ |
Upload File : |
"use strict";var KTProjectSettings={init:function(){!function(){var t;$("#kt_datepicker_1").flatpickr();var e=document.getElementById("kt_project_settings_form"),i=e.querySelector("#kt_project_settings_submit");t=FormValidation.formValidation(e,{fields:{name:{validators:{notEmpty:{message:"Project name is required"}}},type:{validators:{notEmpty:{message:"Project type is required"}}},description:{validators:{notEmpty:{message:"Project Description is required"}}},date:{validators:{notEmpty:{message:"Due Date is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,submitButton:new FormValidation.plugins.SubmitButton,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row"})}}),i.addEventListener("click",(function(e){e.preventDefault(),t.validate().then((function(t){"Valid"==t?swal.fire({text:"Thank you! You've updated your project settings",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-light-primary"}}):swal.fire({text:"Sorry, looks like there are some errors detected, please try again.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-light-primary"}})}))}))}()}};KTUtil.onDOMContentLoaded((function(){KTProjectSettings.init()}));