From 23a40cc1b354f7ce0922ee68f06eebc2de5fd057 Mon Sep 17 00:00:00 2001 From: balbarak Date: Tue, 3 Mar 2020 16:50:55 +0300 Subject: [PATCH 1/2] fix data name --- dist/js/bootstrap-hijri-datetimepicker.js | 2 +- src/js/bootstrap-hijri-datetimepicker.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/js/bootstrap-hijri-datetimepicker.js b/dist/js/bootstrap-hijri-datetimepicker.js index c1d45c4..3e8684d 100644 --- a/dist/js/bootstrap-hijri-datetimepicker.js +++ b/dist/js/bootstrap-hijri-datetimepicker.js @@ -13839,7 +13839,7 @@ ///Destroys the widget and removes all attached event listeners hide(); detachDatePickerElementEvents(); - element.removeData('DateTimePicker'); + element.removeData('HijriDatePicker'); element.removeData('date'); }; diff --git a/src/js/bootstrap-hijri-datetimepicker.js b/src/js/bootstrap-hijri-datetimepicker.js index 8301af2..8a55c64 100644 --- a/src/js/bootstrap-hijri-datetimepicker.js +++ b/src/js/bootstrap-hijri-datetimepicker.js @@ -1729,7 +1729,7 @@ ///Destroys the widget and removes all attached event listeners hide(); detachDatePickerElementEvents(); - element.removeData('DateTimePicker'); + element.removeData('HijriDatePicker'); element.removeData('date'); }; @@ -2766,7 +2766,7 @@ maxDate: '2070-01-01', extraFormats: false, stepping: 1, - useCurrent: true, + useCurrent: false, collapse: true, locale: 'ar-SA', defaultDate: false, From a5663ecfd226f2344b937b2b51a0bba1df73a712 Mon Sep 17 00:00:00 2001 From: balbarak Date: Tue, 3 Mar 2020 17:03:38 +0300 Subject: [PATCH 2/2] fix samples --- samples/index.html | 67 +++++----------------------------------------- 1 file changed, 7 insertions(+), 60 deletions(-) diff --git a/samples/index.html b/samples/index.html index f8c1ee3..2278f17 100644 --- a/samples/index.html +++ b/samples/index.html @@ -27,35 +27,12 @@

Bootstrap Hijri Date Picker v1.0.0

-
-
-
- -
- -
-
-
-
<div class="card">
-                            <div class="card-body">
-                              This is some text within a card body.
-                            </div>
-                          </div>
-
-
-
-
-
-
- -
+
@@ -64,7 +41,7 @@

Bootstrap Hijri Date Picker v1.0.0

- +