From 686a943baa3f2af685881a6ad05c2d5f4ee5214b Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 목, 09 12월 2021 14:26:53 +0900
Subject: [PATCH] 사용자 정의필드 시간기능 추가

---
 src/main/webapp/scripts/components/utils/dateRangePicker.directive.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/scripts/components/utils/dateRangePicker.directive.js b/src/main/webapp/scripts/components/utils/dateRangePicker.directive.js
index 7acb44c..d6ea913 100644
--- a/src/main/webapp/scripts/components/utils/dateRangePicker.directive.js
+++ b/src/main/webapp/scripts/components/utils/dateRangePicker.directive.js
@@ -77,14 +77,16 @@
                                     });
                                 } else if ($attrs["rangeType"] === "singleDate") {
                                     $($element).daterangepicker({
-                                        timePicker: false,
+                                        timePicker: true,
+                                        timePickerSeconds : true,
                                         autoUpdateInput: true,
                                         autoApply : true,
                                         singleDatePicker : true,
                                         isSingle : true,
+
                                         //parentEl : $scope.parentEl !== undefined ? $scope.parentEl : "",
                                         locale: {
-                                            format: 'YYYY-MM-DD',
+                                            format: 'YYYY-MM-DD/hh-mm-ss A',
                                             applyLabel: options.applyLabel,
                                             cancelLabel: options.cancelLabel,
                                             daysOfWeek: options.daysOfWeek,
@@ -92,6 +94,10 @@
                                         },
                                         opens : "center"
                                     });
+                                    // singleDate 痍⑥냼 踰꾪듉 (媛� 珥덇린�솕)
+                                    $($element).on('cancel.daterangepicker', function(ev, picker) {
+                                        $scope.ngModel = "";
+                                    });
                                 }
                             }
                             else {

--
Gitblit v1.8.0