first commit
This commit is contained in:
commit
b71ea45681
898 changed files with 138202 additions and 0 deletions
1
static/assets/js/modal-add-new-address.js
Normal file
1
static/assets/js/modal-add-new-address.js
Normal file
|
@ -0,0 +1 @@
|
|||
"use strict";$(function(){var e=$(".select2");e.length&&e.each(function(){var e=$(this);e.wrap('<div class="position-relative"></div>').select2({placeholder:"Select value",dropdownParent:e.parent()})})}),document.addEventListener("DOMContentLoaded",function(){document.getElementById("addNewAddress").addEventListener("show.bs.modal",function(e){window.Helpers.initCustomOptionCheck()}),FormValidation.formValidation(document.getElementById("addNewAddressForm"),{fields:{modalAddressFirstName:{validators:{notEmpty:{message:"Please enter your first name"},regexp:{regexp:/^[a-zA-Zs]+$/,message:"The first name can only consist of alphabetical"}}},modalAddressLastName:{validators:{notEmpty:{message:"Please enter your last name"},regexp:{regexp:/^[a-zA-Zs]+$/,message:"The last name can only consist of alphabetical"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap5:new FormValidation.plugins.Bootstrap5({eleValidClass:"",rowSelector:".col-12"}),submitButton:new FormValidation.plugins.SubmitButton,autoFocus:new FormValidation.plugins.AutoFocus}})});
|
Loading…
Add table
Add a link
Reference in a new issue