fixes U4-3054 icon picker viewstate

This commit is contained in:
perploug
2013-10-10 19:47:12 +02:00
parent 088253ebfd
commit e67f85695c
2 changed files with 14 additions and 0 deletions

View File

@@ -35,6 +35,12 @@
<key alias="toPublish">שלח לפירסום</key>
<key alias="translate">תרגם</key>
<key alias="update">עדכן</key>
<key alias="DeleteCMSImportAction">Delete</key>
<key alias="ExecuteCMSImportWizardAction">Execute</key>
<key alias="ScheduleCMSImportWizardAction">Schedule</key>
<key alias="StartCMSImportWizardAction">Import Data</key>
<key alias="StartCMSImportChildDefinitionAction">Create child definition</key>
<key alias="LastRunInfoAction">Scheduled task log</key>
</area>
<area alias="assignDomain">
<key alias="addNew">הוסף דומיין חדש</key>

View File

@@ -120,6 +120,11 @@ namespace umbraco.controls
PanePropertiesInherited.Visible = true;
}
if (string.IsNullOrEmpty(_contentType.IconUrl))
lt_icon.Text = "icon-document";
else
lt_icon.Text = _contentType.IconUrl.TrimStart('.');
checkTxtAliasJs.Text = string.Format("checkAlias('{0}');", txtAlias.ClientID);
}
@@ -264,6 +269,9 @@ namespace umbraco.controls
protected void save_click(object sender, EventArgs e)
{
//sync state betweet lt and hidden value
lt_icon.Text = tb_icon.Value;
var state = new SaveAsyncState(
UmbracoContext,
new SaveClickEventArgs("Saved")