소스 검색

Merge branch 'feature-profilechilds' into beta

beta
Daniel 3 년 전
부모
커밋
1a1fe14acb
2개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. +13
    -1
      src/client/manager/js/app/components/appointments/AppointmentSelectTable.js
  2. +2
    -2
      src/client/manager/js/app/views/appointments/AppointmentList.js

+ 13
- 1
src/client/manager/js/app/components/appointments/AppointmentSelectTable.js 파일 보기

@@ -111,6 +111,7 @@ const AppointmentSelectTable = {
table.draw();
});
// Add eventhandler for datepickers
$.fn.dataTable.ext.search.push(
function(settings, searchData, index, rowData, counter) {
const dateFrom = $('input.dateStart').val();
@@ -119,12 +120,22 @@ const AppointmentSelectTable = {
const startDate = item['start_dt'];
const strStartDate = startDate.date.substring(0,10);
if (dateFrom === '' && dateTo === '') {
return true;
}
if (dateFrom !== '' && dateTo === '') {
return strStartDate >= dateFrom;
}
if (dateFrom === '' && dateTo !== '') {
return strStartDate <= dateTo;
}
if (strStartDate >= dateFrom && strStartDate <= dateTo) {
return true;
}
return false;
}
);
// Initial drawing needed to filter by date interval
table.draw();
},
@@ -144,7 +155,8 @@ const AppointmentSelectTable = {
destroy : function()
{
// Remove eventhandler for datepickers
$.fn.dataTable.ext.search.pop();
}
};

+ 2
- 2
src/client/manager/js/app/views/appointments/AppointmentList.js 파일 보기

@@ -61,7 +61,7 @@ const AppointmentList = {
let compAst = this.createComponent(
self.compAst = this.createComponent(
'appointment-select-table',
$container.find( '[f-id="container-appointment-data-table"]' ).first().get( 0 ),
apps
@@ -134,7 +134,7 @@ const AppointmentList = {
destroy : function()
{
self.compAst.destroy();
}
};

불러오는 중...
취소
저장