diff --git a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx index 6df7c7b3dc..1498183577 100644 --- a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx +++ b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx @@ -109,9 +109,12 @@ }); - jQuery(document).ready(function () { + checkAlias('.prop-alias'); + + duplicatePropertyNameAsSafeAlias('ul.addNewProperty .prop-name', 'ul.addNewProperty .prop-alias'); + jQuery(".icon-picker").click(function(){ var that = this; UmbClientMgr.openAngularModalWindow({ diff --git a/src/Umbraco.Web.UI/umbraco/controls/GenericProperties/GenericProperty.ascx b/src/Umbraco.Web.UI/umbraco/controls/GenericProperties/GenericProperty.ascx index 039dc0d748..83a3aa1362 100644 --- a/src/Umbraco.Web.UI/umbraco/controls/GenericProperties/GenericProperty.ascx +++ b/src/Umbraco.Web.UI/umbraco/controls/GenericProperties/GenericProperty.ascx @@ -33,11 +33,11 @@ - + - + @@ -64,14 +64,4 @@ - - + \ No newline at end of file diff --git a/src/Umbraco.Web.UI/umbraco_client/GenericProperty/genericProperty.js b/src/Umbraco.Web.UI/umbraco_client/GenericProperty/genericProperty.js index 780793f762..524947ae91 100644 --- a/src/Umbraco.Web.UI/umbraco_client/GenericProperty/genericProperty.js +++ b/src/Umbraco.Web.UI/umbraco_client/GenericProperty/genericProperty.js @@ -13,9 +13,9 @@ function expandCollapse(theId) { } } function duplicatePropertyNameAsSafeAlias(nameId, aliasId) { - var input = $('#' + aliasId); + var input = $(aliasId); - $('#' + nameId).keyup(function(event) { + $(nameId).keyup(function(event) { var value = $(this).val(); getSafeAlias(aliasId, value, false, function (alias) { input.val(alias); @@ -24,7 +24,7 @@ function duplicatePropertyNameAsSafeAlias(nameId, aliasId) { } function checkAlias(aliasId) { - var input = $('#' + aliasId); + var input = $(aliasId); input.keyup(function(event) { var value = $(this).val(); diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/GenericProperties/GenericProperty.ascx b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/GenericProperties/GenericProperty.ascx index 4cdad45578..aa7571db52 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/GenericProperties/GenericProperty.ascx +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/GenericProperties/GenericProperty.ascx @@ -1,72 +1,67 @@ <%@ Control Language="c#" AutoEventWireup="True" Codebehind="GenericProperty.ascx.cs" Inherits="umbraco.controls.GenericProperties.GenericProperty" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%> <%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %> -
  • -
    +
  • +
    +
    +
    + -
    - -

    - - - - - - -

    -
    - - - - -
    -
  • - \ No newline at end of file + + + + + + + + + + + + + + + \ No newline at end of file