Updating the client expandoControl to not do anything if the controlees have no height

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-10-19 22:20:51 -07:00
parent 445f0f955a
commit 849591e8fd
3 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
@model Orchard.ContentTypes.ViewModels.EditTypeViewModel
@{ Style.Require("ContentTypesAdmin"); }
@{
Style.Require("ContentTypesAdmin");
Script.Require("jQuery");
Script.Include("admin.js");
}
<h1>@Html.TitleForPage(T("Edit Content Type").ToString())</h1>
<p class="breadcrumb">@Html.ActionLink(T("Content Types").Text, "index")@T(" &#62; ")@T("Edit Content Type")</p>
@using (Html.BeginFormAntiForgeryPost()) {

View File

@@ -1,6 +1,9 @@
@model Orchard.ContentTypes.ViewModels.EditPartViewModel
@{ Style.Require("ContentTypesAdmin"); }
@{
Style.Require("ContentTypesAdmin");
Script.Require("jQuery");
Script.Include("admin.js");
}
<h1>@Html.TitleForPage(T("Edit Part").ToString())</h1>
<p class="breadcrumb">@Html.ActionLink(T("Content Types").Text, "index")@T(" &#62; ")@Html.ActionLink(T("Content Parts").Text, "listparts")@T(" &#62; ")@T("Edit Part")</p>
@using (Html.BeginFormAntiForgeryPost()) {

View File

@@ -18,7 +18,7 @@
glyph.data("controllees", getControllees(controller));
if (glyph.data("controllees").length === 0) {
if (glyph.data("controllees").length === 0 || glyph.data("controllees").height() < 1) {
return;
}