Browse Source

Refactoring

pull/15806/head
Salih 4 years ago
parent
commit
4db3e7e671
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/DatePicker/AbpDatePickerBaseTagHelperService.cs
  2. 6
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js

2
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/DatePicker/AbpDatePickerBaseTagHelperService.cs

@ -356,7 +356,7 @@ public abstract class AbpDatePickerBaseTagHelperService<TTagHelper> : AbpTagHelp
if (options.IsUtc != null) if (options.IsUtc != null)
{ {
attrList.Add("data-is-utc", "true"); attrList.Add("data-is-utc", options.IsUtc.ToString().ToLowerInvariant());
} }
if (options.IsIso != null) if (options.IsIso != null)

6
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js

@ -359,11 +359,11 @@
options.locale.separator = separator; options.locale.separator = separator;
} }
var startDate = options.startDate ? getMoment(options.startDate) : null; var startDate = options.startDate ? moment(options.startDate) : null;
if(singleDatePicker && !startDate){ if(singleDatePicker && !startDate){
startDate = options.date ? getMoment(options.date) : null; startDate = options.date ? moment(options.date) : null;
} }
var endDate = options.endDate ? getMoment(options.endDate) : null; var endDate = options.endDate ? moment(options.endDate) : null;
if (startDate) { if (startDate) {
options.startDate = startDate; options.startDate = startDate;

Loading…
Cancel
Save