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/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

- + 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,