Fix for language selector vs. menu bug
This commit is contained in:
@@ -166,7 +166,7 @@
|
||||
<telerik:RadMenuItem runat="server" Text="XYZ Manage Geography" Permission="All" UserLevel="4" GlobalResourceKey="Menu5_Administration_GeographyTree" />
|
||||
<telerik:RadMenuItem runat="server" Text="XYZ Access Control Lists" Permission="All" UserLevel="4" GlobalResourceKey="Menu5_Administration_AccessControlLists" />
|
||||
<telerik:RadMenuItem runat="server" IsSeparator="true" UserLevel="4" />
|
||||
<telerik:RadMenuItem runat="server" Text="Build# Auto" Permission="All" UserLevel="4" GlobalResourceKey="None" NotaBene="This is a special case -- the build number is dynamically inserted for text" />
|
||||
<telerik:RadMenuItem runat="server" Dynamic="true" Template="Build#" Permission="All" UserLevel="4" NotaBene="This is a special case -- the build number is dynamically inserted for text" />
|
||||
</Items>
|
||||
</telerik:RadMenuItem>
|
||||
</Items>
|
||||
|
||||
@@ -134,6 +134,7 @@ namespace Activizr
|
||||
string authorization = item.Attributes["Permission"];
|
||||
string resourceKey = item.Attributes["GlobalResourceKey"];
|
||||
string url = item.NavigateUrl;
|
||||
string dynamic = item.Attributes["Dynamic"];
|
||||
|
||||
item.Visible = itemUserLevel <= 4;
|
||||
|
||||
@@ -142,9 +143,9 @@ namespace Activizr
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.Text == "Build# Auto")
|
||||
if (dynamic == "true")
|
||||
{
|
||||
item.Text = GetBuildIdentity();
|
||||
item.Text = GetBuildIdentity(); // only dynamically constructed atm -- if more, switch on "template" field
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user