mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +08:00
Updating the client expandoControl to not do anything if the controlees have no height
--HG-- branch : dev
This commit is contained in:
@@ -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(" > ")@T("Edit Content Type")</p>
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
|
||||
@@ -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(" > ")@Html.ActionLink(T("Content Parts").Text, "listparts")@T(" > ")@T("Edit Part")</p>
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user