1
0

fix dzisiejszej daty + fix wygladu pickera

This commit is contained in:
Łukasz 2019-01-30 22:20:56 +01:00
parent 56eeed0f98
commit 3d4a87e629
7 changed files with 5 additions and 1 deletions

Binary file not shown.

After

(image error) Size: 6.8 KiB

Binary file not shown.

After

(image error) Size: 6.9 KiB

Binary file not shown.

After

(image error) Size: 4.6 KiB

Binary file not shown.

After

(image error) Size: 6.8 KiB

Binary file not shown.

After

(image error) Size: 4.5 KiB

Binary file not shown.

After

(image error) Size: 6.2 KiB

View File

@ -27,7 +27,11 @@
var begindate = $(this).find('input[name=begindate]').val().split("-");
var enddate = $(this).find('input[name=enddate]').val().split("-");
var today = new Date();
var todayTime = new Date();
var dd = today.getDate();
var mm = today.getMonth();
var yyyy = today.getFullYear();
var today = new Date(yyyy, mm, dd);
begindate = new Date(begindate[2], begindate[1] - 1, begindate[0]);
enddate = new Date(enddate[2], enddate[1] - 1, enddate[0]);
if (begindate.getTime() < today.getTime()){