Skip to content

Commit 76d6f9a

Browse files
committed
بهبود کد
1 parent a2943ee commit 76d6f9a

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

demo/SamplesToDebug.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,20 @@ <h2>Simple</h2>
2929
</div>
3030
<input type="text" id="inputDate3" class="form-control">
3131
</div>
32-
<label id="showDate_class"> </label>
32+
<label id="showDate_class"> </label>
33+
<input type="hidden" id="targetDateSelector_id" value="2009-12-15T00:00:00Z">
3334
</div>
3435
</div>
3536
</div>
3637

3738
<script src="../dist/jquery.md.bootstrap.datetimepicker.js" type="text/javascript"></script>
39+
<!-- <script src="../src/jquery.md.bootstrap.datetimepicker.js" type="text/javascript"></script> -->
3840

3941
<script type="text/javascript">
4042
$("#dt_class").MdPersianDateTimePicker({
41-
targetDateSelector: "#showDate_class",
43+
targetDateSelector: "#targetDateSelector_id",
4244
targetTextSelector: "#inputDate3",
4345
textFormat: " dddd dd MMMM yyyy ",
44-
isGregorian: false,
45-
modalMode: false,
46-
englishNumber: false,
47-
enableTimePicker: true,
48-
selectedDate: new Date(2020, 10, 01), // initial value
49-
selectedDateToShow: new Date(2020, 10, 01),
5046
calendarViewOnChange: function (param1) {
5147
console.log('calendarViewOnChange', param1);
5248
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "md.bootstrappersiandatetimepicker",
3-
"version": "3.11.1",
3+
"version": "3.11.2",
44
"description": "Persian Date Time Picker with jQuery 3+ & Bootstrap 4+",
55
"license": "MIT",
66
"moduleResolution": "node",

0 commit comments

Comments
 (0)