fix dzisiejszej daty + fix wygladu pickera
This commit is contained in:
parent
56eeed0f98
commit
3d4a87e629
BIN
hotel/rooms/static/images/ui-icons_444444_256x240.png
Normal file
BIN
hotel/rooms/static/images/ui-icons_444444_256x240.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
BIN
hotel/rooms/static/images/ui-icons_555555_256x240.png
Normal file
BIN
hotel/rooms/static/images/ui-icons_555555_256x240.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
BIN
hotel/rooms/static/images/ui-icons_777620_256x240.png
Normal file
BIN
hotel/rooms/static/images/ui-icons_777620_256x240.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
hotel/rooms/static/images/ui-icons_777777_256x240.png
Normal file
BIN
hotel/rooms/static/images/ui-icons_777777_256x240.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
BIN
hotel/rooms/static/images/ui-icons_cc0000_256x240.png
Normal file
BIN
hotel/rooms/static/images/ui-icons_cc0000_256x240.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
BIN
hotel/rooms/static/images/ui-icons_ffffff_256x240.png
Normal file
BIN
hotel/rooms/static/images/ui-icons_ffffff_256x240.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
@ -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()){
|
||||
|
Loading…
Reference in New Issue
Block a user