Small mistakes in last commit

--HG--
branch : 1.x
This commit is contained in:
Louis DeJardin
2011-05-27 19:35:28 -07:00
parent 252cc00196
commit 331a36a703
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -1,4 +1,4 @@
@model Orchard.Core.Common.DateEditor.DateEditorViewModel;
@model Orchard.Core.Common.DateEditor.DateEditorViewModel
@{
var DateEditor = Model;
Script.Require("jQueryUtils_TimePicker");

View File

@@ -1,4 +1,4 @@
@model Orchard.Core.Common.OwnerEditor.OwnerEditorViewModel;
@model Orchard.Core.Common.OwnerEditor.OwnerEditorViewModel
@{
var OwnerEditor = Model;
}