mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Small mistakes in last commit
--HG-- branch : 1.x
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Orchard.Core.Common.DateEditor {
|
||||
public class DateEditorHandler : ContentHandler {
|
||||
public DateEditorHandler() {
|
||||
OnPublished<CommonPart>((context, part) => {
|
||||
var settings = part.ContentItem.TypeDefinition.Settings.GetModel<DateEditorSettings>();
|
||||
var settings = part.TypePartDefinition.Settings.GetModel<DateEditorSettings>();
|
||||
if (!settings.ShowDateEditor) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@model Orchard.Core.Common.DateEditor.DateEditorViewModel;
|
||||
@model Orchard.Core.Common.DateEditor.DateEditorViewModel
|
||||
@{
|
||||
var DateEditor = Model;
|
||||
Script.Require("jQueryUtils_TimePicker");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@model Orchard.Core.Common.OwnerEditor.OwnerEditorViewModel;
|
||||
@model Orchard.Core.Common.OwnerEditor.OwnerEditorViewModel
|
||||
@{
|
||||
var OwnerEditor = Model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user