WIP dataeditor settings, adds default value option

[TFS Changeset #78719]
This commit is contained in:
starfighter83
2010-10-21 14:23:57 +00:00
parent 6bfb41999f
commit 4671e462eb
4 changed files with 8 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ namespace umbraco.editorControls.SettingControls
tb.CssClass = "guiInputText guiInputStandardSize";
if (string.IsNullOrEmpty(tb.Text) && Prevalues.Count > 0)
tb.Text = Prevalues[0];
if (string.IsNullOrEmpty(tb.Text) && !string.IsNullOrEmpty(DefaultValue))
tb.Text = DefaultValue;
return tb;
}