Added warning for snippet editing as commented on issue #403.
This commit is contained in:
parent
1147017d92
commit
861db9beef
24 changed files with 79 additions and 5 deletions
|
@ -83,6 +83,7 @@ namespace ScrewTurn.Wiki {
|
|||
Snippet snippet = Snippets.Find(name);
|
||||
providerSelector.SelectedProvider = snippet.Provider.GetType().FullName;
|
||||
editor.SetContent(snippet.Content, Settings.UseVisualEditorAsDefault);
|
||||
lblEditSnippetWarning.Visible = true;
|
||||
SetTitleForSnippet();
|
||||
}
|
||||
|
||||
|
@ -311,6 +312,8 @@ namespace ScrewTurn.Wiki {
|
|||
btnDelete.Visible = false;
|
||||
lblResult.Text = "";
|
||||
lblResult.CssClass = "";
|
||||
|
||||
lblEditSnippetWarning.Visible = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue