From c2c3dc0f06f402906bfbf174d0167e2f0fc4f3bd Mon Sep 17 00:00:00 2001 From: Shandem Date: Mon, 21 Jun 2010 11:40:54 +0000 Subject: [PATCH] Fixes: 27784 [TFS Changeset #70463] --- umbraco/presentation/umbraco/umbraco.aspx.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/umbraco/presentation/umbraco/umbraco.aspx.cs b/umbraco/presentation/umbraco/umbraco.aspx.cs index 84c521b62f..8b6be8005b 100644 --- a/umbraco/presentation/umbraco/umbraco.aspx.cs +++ b/umbraco/presentation/umbraco/umbraco.aspx.cs @@ -43,13 +43,13 @@ namespace umbraco.cms.presentation foreach (BusinessLogic.Application a in apps) { - string aiconSubstring = a.icon.Substring(1, a.icon.Length - 1); + string appClass = a.icon.StartsWith(".") ? a.icon.Substring(1, a.icon.Length - 1) : a.alias; //adds client side event handlers to the icon buttons - JSEvents.Append(@"jQuery('." + aiconSubstring + "').click(function() { appClick.call(this, '" + a.alias + "'); } );"); - JSEvents.Append(@"jQuery('." + aiconSubstring + "').dblclick(function() { appDblClick.call(this, '" + a.alias + "'); } );"); - - string iconElement = String.Format("
  • ", aiconSubstring); + JSEvents.Append(@"jQuery('." + appClass + "').click(function() { appClick.call(this, '" + a.alias + "'); } );"); + JSEvents.Append(@"jQuery('." + appClass + "').dblclick(function() { appDblClick.call(this, '" + a.alias + "'); } );"); + + string iconElement = String.Format("
  • ", appClass); if (a.icon.StartsWith(".")) iconElement += "\"\"
  • ";