From e60f829f9d975a88673f0e6922f1c9c1228f89ea Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 금, 03 12월 2021 18:30:33 +0900
Subject: [PATCH] 사용자정의 필드 날짜 수정, 프로젝트 생성시 대쉬보드 이동 오류 수정

---
 src/main/webapp/bower_components/bootstrap-daterangepicker/daterangepicker.js |   31 ++++++++++++++++++++++++-------
 1 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/src/main/webapp/bower_components/bootstrap-daterangepicker/daterangepicker.js b/src/main/webapp/bower_components/bootstrap-daterangepicker/daterangepicker.js
index e67d2dc..764f07e 100644
--- a/src/main/webapp/bower_components/bootstrap-daterangepicker/daterangepicker.js
+++ b/src/main/webapp/bower_components/bootstrap-daterangepicker/daterangepicker.js
@@ -52,6 +52,7 @@
         this.autoUpdateInput = true;
         this.alwaysShowCalendars = false;
         this.ranges = {};
+        this.isSingle = false;
 
         this.opens = 'right';
         if (this.element.hasClass('pull-right'))
@@ -94,8 +95,13 @@
         options = $.extend(this.element.data(), options);
 
         //html template for the picker UI
+        var single = '';
+        if ( options.isSingle) {
+            single = '-single';
+        }
+
         if (typeof options.template !== 'string' && !(options.template instanceof $))
-            options.template = '<div class="daterangepicker dropdown-menu">' +
+            options.template = '<div class="daterangepicker' + single + ' ' + 'dropdown-menu">' +
                 '<div class="calendar left">' +
                     '<div class="daterangepicker_input">' +
                       '<input class="input-mini form-control" type="text" name="daterangepicker_start" value="" />' +
@@ -376,16 +382,28 @@
         }
 
         if (this.singleDatePicker) {
+
+
             this.container.addClass('single');
             this.container.find('.calendar.left').addClass('single');
             this.container.find('.calendar.left').show();
             this.container.find('.calendar.right').hide();
             this.container.find('.daterangepicker_input input, .daterangepicker_input > i').hide();
-            if (this.timePicker) {
-                this.container.find('.ranges ul').hide();
-            } else {
-                this.container.find('.ranges').hide();
-            }
+            this.container.find('.calendar').on('focus.daterangepicker', '.daterangepicker_input input', $.proxy(this.formInputsBlurred, this))
+            //this.container.find('.ranges ul').show();
+            this.container.find('.ranges').show();
+            //this.container.find('.applyBtn, .cancelBtn').addClass('hide');
+            //this.container.find('.ranges').on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this))
+            //this.container.find('.applyBtn, .cancelBtn').addClass(this.buttonClasses);
+            //this.container.find('.cancelBtn').addClass(this.cancelClass);
+            //this.container.find('.applyBtn').html(this.locale.applyLabel);
+            //this.container.find('.cancelBtn').html(this.locale.cancelLabel);
+
+            // if (this.timePicker) {
+            //     this.container.find('.ranges ul').hide();
+            // } else {
+            //     this.container.find('.ranges').hide();
+            // }
         }
 
         if ((typeof options.ranges === 'undefined' && !this.singleDatePicker) || this.alwaysShowCalendars) {
@@ -407,7 +425,6 @@
             this.container.find('.cancelBtn').addClass(this.cancelClass);
         this.container.find('.applyBtn').html(this.locale.applyLabel);
         this.container.find('.cancelBtn').html(this.locale.cancelLabel);
-
         //
         // event listeners
         //

--
Gitblit v1.8.0