Browse Source

DIV-191 - fixed datepicker issue with manual entry

pull/160/head
Mike Olund 8 years ago
parent
commit
6e28730881
2 changed files with 5 additions and 4 deletions
  1. +4
    -3
      edivorce/apps/core/static/js/ajax.js
  2. +1
    -1
      edivorce/apps/core/static/js/main.js

+ 4
- 3
edivorce/apps/core/static/js/ajax.js View File

@ -7,10 +7,11 @@ var ajaxOnChange = function () {
var value = getValue(el, question);
var isValid = true;
// todo: Can this be removed? the forceParse option in the datepicker seems to take care of date validation for us
// Check if date is in valid format DD/MM/YYYY
if (el.is(".date-picker")){
isValid = validateDate(value);
}
//if (el.is(".date-picker")){
// isValid = validateDate(value);
//}
if (el.is("#email_textbox")){
isValid = validateEmail(value);


+ 1
- 1
edivorce/apps/core/static/js/main.js View File

@ -109,7 +109,7 @@ var deleteAddedField = function(e){
// Configuration for datepicker
var date_picker = function () {
$(".date-picker-group").datepicker({
$(".date-picker-group input").datepicker({
format: "dd/mm/yyyy",
startDate: "-100y",
endDate: "0d",


Loading…
Cancel
Save