Browse Source

refactoring docs #13793

pull/14017/head
Salih 4 years ago
parent
commit
995e9f7605
  1. 16
      modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Documents/Index.cshtml
  2. 6
      modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Documents/index.js

16
modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Documents/Index.cshtml

@ -102,14 +102,14 @@
<input type="text"
id="CreationTimeMin"
name="CreationTimeMin"
class="form-control singleDatePicker"
class="form-control singledatepicker"
placeholder="@L["StartDate"].Value">
<input type="text"
id="CreationTimeMax"
name="CreationTimeMax"
placeholder="@L["EndDate"].Value"
class="form-control singleDatePicker">
class="form-control singledatepicker">
</div>
</abp-column>
@ -119,7 +119,7 @@
<input type="text"
id="LastUpdatedTimeMin"
name="LastUpdatedTimeMin"
class="form-control singleDatePicker"
class="form-control singledatepicker"
placeholder="@L["StartDate"].Value">
<input type="text"
@ -127,7 +127,7 @@
id="LastUpdatedTimeMax"
name="LastUpdatedTimeMax"
placeholder="@L["EndDate"].Value"
class="form-control singleDatePicker">
class="form-control singledatepicker">
</div>
</abp-column>
@ -138,14 +138,14 @@
<input type="text"
id="LastCachedTimeMin"
name="LastCachedTimeMin"
class="form-control singleDatePicker"
class="form-control singledatepicker"
placeholder="@L["StartDate"].Value">
<input type="text"
id="LastCachedTimeMax"
name="LastCachedTimeMax"
placeholder="@L["EndDate"].Value"
class="form-control singleDatePicker">
class="form-control singledatepicker">
</div>
</abp-column>
@ -171,14 +171,14 @@
<input type="text"
id="LastSignificantUpdateTimeMin"
name="LastSignificantUpdateTimeMin"
class="form-control singleDatePicker"
class="form-control singledatepicker"
placeholder="@L["StartDate"].Value">
<input type="text"
id="LastSignificantUpdateTimeMax"
name="LastSignificantUpdateTimeMax"
placeholder="@L["EndDate"].Value"
class="form-control singleDatePicker">
class="form-control singledatepicker">
</div>
</abp-column>

6
modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Documents/index.js

@ -7,7 +7,7 @@ $(function () {
};
$('.singleDatePicker').daterangepicker({
$('.singledatepicker').daterangepicker({
"singleDatePicker": true,
"showDropdowns": true,
"autoUpdateInput": false,
@ -18,9 +18,9 @@ $(function () {
"maxYear": 2199,
});
$('.singleDatePicker').attr('autocomplete', 'off');
$('.singledatepicker').attr('autocomplete', 'off');
$('.singleDatePicker').on('apply.daterangepicker', function (ev, picker) {
$('.singledatepicker').on('apply.daterangepicker', function (ev, picker) {
$(this).val(picker.startDate.format('l'));
$(this).data('date', picker.startDate.locale('en').format('YYYY-MM-DD'));
});

Loading…
Cancel
Save