HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/build/public/contact_detail_js.f5b0533c11b41920eb3a.js
/*! For license information please see contact_detail_js.f5b0533c11b41920eb3a.js.LICENSE.txt */
(()=>{var __webpack_modules__={"./buyercall/assets/scripts/mobile/contact_detail.js":()=>{eval('$(function () {\n  end_url = location.href.split(\'/\')[5];\n  $("#nav-notes").attr("href", "/mobile/contact_notes/" + end_url + location.search);\n  $("#nav-timeline").attr("href", "/mobile/timeline/" + end_url + location.search);\n  $("input[name=phonenumber_1]").mask("(000) 000-0000");\n  $("input[name=phonenumber_2]").mask("(000) 000-0000");\n  $("input[name=zip]").mask("00000");\n  // $("#back-to-contact").attr("href", "/mobile/contact_leads/" + location.search);\n});\n$("#back-to-contact").on("click", function () {\n  if ($(".save-btn").is(":hidden")) {\n    location.href = "/mobile/contact_leads/detail" + location.search;\n  } else {\n    $("#modal-ok-link").attr("href", "/mobile/contact_leads/detail" + location.search);\n    $("#backToModal").modal(\'show\');\n  }\n});\n$("input[name=phonenumber_1]").click(function () {\n  if ($(this).val() && $(this).is(\'[readonly]\')) {\n    $("#numberModal1").modal("show");\n  }\n});\n$("input[name=phonenumber_2]").click(function () {\n  if ($(this).val() && $(this).is(\'[readonly]\')) {\n    $("#numberModal2").modal("show");\n  }\n});\n$(\'.edit-input\').on("change", function () {\n  $(\'.save-btn\').attr("hidden", false);\n});\n$(\'.content-edit-btn\').click(function () {\n  $(this).closest(".contact-number-wrapper").find(\'.contact-block-sub input\').addClass(\'active\').attr("readonly", false);\n  $("input[name=phonenumber_1]").removeClass(\'active\').attr("readonly", true);\n});\n$(\'.address-edit-btn\').click(function () {\n  $(this).closest(".details-inp-wrapper").find(\'input\').addClass(\'active\').attr("readonly", false);\n});\n$(\'.inp-edit-btn\').click(function () {\n  $(this).closest(".details-inp-group").find(\'.details-input \').addClass(\'active\').attr("readonly", false);\n});\n$(\'.save-btn\').click(function () {\n  $(\'.details-input\').removeClass(\'active\').attr("readonly", true);\n  $(\'.contact-block-sub input\').removeClass(\'active\').attr("readonly", true);\n});\n$(".save-btn").on("click", function () {\n  data = $("#contact-edit-form").serialize();\n  $.ajax({\n    type: "POST",\n    url: location.href,\n    data: data,\n    success: function success(result) {\n      if (result.status) {\n        location.reload();\n      } else {\n        $("#error-msg").text(result.error);\n        $("#validationError").modal(\'show\');\n      }\n    }\n  });\n});\n\n//# sourceURL=webpack:///./buyercall/assets/scripts/mobile/contact_detail.js?')}},__webpack_exports__={};__webpack_modules__["./buyercall/assets/scripts/mobile/contact_detail.js"]()})();