Fixed and closed #467: names of new items are now trimmed before saving or renaming.

This commit is contained in:
Dario Solera 2010-01-27 11:24:32 +00:00
parent 121f90fd9b
commit f8e410bf6a
12 changed files with 35 additions and 2 deletions

View file

@ -213,6 +213,8 @@ namespace ScrewTurn.Wiki {
}
protected void btnCreate_Click(object sender, EventArgs e) {
txtName.Text = txtName.Text.Trim();
Page.Validate("namespace");
if(!Page.IsValid) return;
@ -412,6 +414,8 @@ namespace ScrewTurn.Wiki {
lblRenameResult.CssClass = "";
lblRenameResult.Text = "";
txtNewName.Text = txtNewName.Text.Trim();
Page.Validate("rename");
if(!Page.IsValid) return;