diff --git a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx index fa3f464443..f59534258d 100644 --- a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx +++ b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx @@ -75,13 +75,11 @@ - +
- + <%if (cb_isContainer.Checked) { %> diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs index 98458a5aff..0f9bc7bc68 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs @@ -122,7 +122,9 @@ namespace umbraco.controls pp_compositions.Text = ui.Text("contenttypecompositions", Security.CurrentUser); pp_description.Text = ui.Text("editcontenttype", "description", Security.CurrentUser); pp_icon.Text = ui.Text("icon", Security.CurrentUser); - + pp_Root.Text = ui.Text("editcontenttype", "allowAtRoot", Security.CurrentUser) + "
" + ui.Text("editcontenttype", "allowAtRootDesc", Security.CurrentUser) + ""; + pp_isContainer.Text = ui.Text("editcontenttype", "hasListView", Security.CurrentUser) + "
" + ui.Text("editcontenttype", "hasListViewDesc", Security.CurrentUser) + ""; + // we'll disable this... if (!Page.IsPostBack && _contentType.MasterContentType != 0) { @@ -140,7 +142,6 @@ namespace umbraco.controls checkTxtAliasJs.Text = string.Format("checkAlias('#{0}');", txtAlias.ClientID); - DataBind(); } /// @@ -1083,33 +1084,6 @@ jQuery(document).ready(function() {{ refreshDropDowns(); }}); return !hasAlias; } - /// - /// Removes a PropertyType, but when??? - /// - /// - /// - protected void dgGenericPropertiesOfTab_itemcommand(object sender, DataGridCommandEventArgs e) - { - // Delete propertytype from contenttype - if (e.CommandName == "Delete") - { - int propertyId = int.Parse(e.Item.Cells[0].Text); - string rawName = string.Empty; - - var propertyType = _contentType.ContentTypeItem.PropertyTypes.FirstOrDefault(x => x.Id == propertyId); - if (propertyType != null && string.IsNullOrEmpty(propertyType.Alias) == false) - { - rawName = propertyType.Name; - _contentType.ContentTypeItem.RemovePropertyType(propertyType.Alias); - _contentType.Save(); - } - - RaiseBubbleEvent(new object(), new SaveClickEventArgs("Property ´" + rawName + "´ deleted")); - - BindDataGenericProperties(false); - } - } - /// /// Called asynchronously in order to delete a content type property ///