pull/624/head
Jamie.Rees 8 years ago
parent bd34444505
commit 624b32d926

@ -118,10 +118,11 @@ namespace PlexRequests.UI.Helpers
public static IHtmlString LoadDateTimePickerAsset(this HtmlHelpers helper) public static IHtmlString LoadDateTimePickerAsset(this HtmlHelpers helper)
{ {
var content = GetBaseUrl(); var assetLocation = GetBaseUrl();
var sb = new StringBuilder(); var content = GetContentUrl(assetLocation);
var startUrl = $"{content}/Content"; var startUrl = $"{content}/Content";
var sb = new StringBuilder();
sb.AppendLine($"<link rel=\"stylesheet\" href=\"{startUrl}/datepicker.min.css\" type=\"text/css\"/>"); sb.AppendLine($"<link rel=\"stylesheet\" href=\"{startUrl}/datepicker.min.css\" type=\"text/css\"/>");
sb.AppendLine($"<script src=\"{startUrl}/bootstrap-datetimepicker.min.js\"></script>"); sb.AppendLine($"<script src=\"{startUrl}/bootstrap-datetimepicker.min.js\"></script>");

@ -133,7 +133,7 @@
} }
var $form = $("#mainForm"); var $form = $("#mainForm");
var data = $form.serialize(); var data = $form.serialize();
data = data + "&noticeStart=" + start + "&noticeEnd=" + end; data = data + "&noticeStart=" + start + "&noticeEnd=" + end;

Loading…
Cancel
Save