Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote branch 'grimace/local_2.3' into uifix

  • Loading branch information...
commit 04c1c6e6012842f3237f9f8fed326ce5bd7fc152 2 parents 75210c9 + 5a6de2c
@libardo libardo authored
View
3  src/Framework/N2/Edit/EditUrlManager.cs
@@ -147,7 +147,8 @@ public virtual string GetDeleteUrl(ContentItem selectedItem)
Url url = Url.ResolveTokens(EditItemUrl);
url = url.AppendQuery(SelectionUtility.SelectedQueryKey, parent.Path);
url = url.AppendQuery("discriminator", definition.Discriminator);
- url = url.AppendQuery("zoneName", zoneName);
+ if (!string.IsNullOrEmpty(zoneName))
+ url = url.AppendQuery("zoneName", zoneName);
if (!string.IsNullOrEmpty(definition.TemplateKey))
url = url.AppendQuery("template", definition.TemplateKey);
View
8 src/Mvc/MvcTemplates/N2/Content/Edit.aspx.cs
@@ -85,10 +85,10 @@ private void InitButtons()
bool isWritableByUser = Security.IsAuthorized(User, Selection.SelectedItem, Permission.Write);
bool isExisting = ie.CurrentItem.ID != 0;
- btnSavePublish.Enabled = isPublicableByUser;
- btnPreview.Enabled = isVersionable && isWritableByUser;
- btnSaveUnpublished.Enabled = isVersionable && isWritableByUser;
- hlFuturePublish.Enabled = isVersionable && isPublicableByUser;
+ btnSavePublish.Visible = isPublicableByUser;
+ btnPreview.Visible = isVersionable && isWritableByUser;
+ btnSaveUnpublished.Visible = isVersionable && isWritableByUser;
+ hlFuturePublish.Visible = isVersionable && isPublicableByUser;
}
protected override void OnLoad(EventArgs e)
Please sign in to comment.
Something went wrong with that request. Please try again.