mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 15:25:03 +02:00
#13344 fix date tokens
This commit is contained in:
parent
ba1c013381
commit
5769a412a8
@ -216,7 +216,6 @@ ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript
|
|||||||
var time = date+' '+$('#text-time-expiration').val();
|
var time = date+' '+$('#text-time-expiration').val();
|
||||||
if (date !== '' && $('#text-time-expiration').val() !== '') {
|
if (date !== '' && $('#text-time-expiration').val() !== '') {
|
||||||
if (date < $('#hidden-today_date').val() || time < $('#hidden-today_date').val()+' '+$('#hidden-today_time').val()) {
|
if (date < $('#hidden-today_date').val() || time < $('#hidden-today_date').val()+' '+$('#hidden-today_time').val()) {
|
||||||
console.log("ENTRO AQUI");
|
|
||||||
errordate();
|
errordate();
|
||||||
} else{
|
} else{
|
||||||
$('#form_token').submit();
|
$('#form_token').submit();
|
||||||
@ -229,6 +228,12 @@ ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript
|
|||||||
}
|
}
|
||||||
} else if (date === '' && time !== ' ') {
|
} else if (date === '' && time !== ' ') {
|
||||||
errordate();
|
errordate();
|
||||||
|
} else if (date !== '' && $('#text-time-expiration').val() === '') {
|
||||||
|
if (date < $('#hidden-today_date').val()) {
|
||||||
|
errordate();
|
||||||
|
} else{
|
||||||
|
$('#form_token').submit();
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
$('#form_token').submit();
|
$('#form_token').submit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user